🦿 Lucian Marin I'm working on Sublevel API (sublevel.net/api/?...). Very basic stuff, but it's a start. Hopefully I'll get feedback from you and make the proper changes.
Eric Since it's outputting Json can you make the variable names CamelCased? I know it's pedantic, but it makes it less jarring. Also I recommend you maintain the pretty-print format (the Json will still work) see how this Json is provided: vild.org/labs/natu...
9y, 11w 5 replies
🦿 Lucian Marin Django Tastypie (django-tastypie.re...) does the formatting. Anyway, I prefer the exact field names used for database.
9y, 11w 4 replies
Eric Can't argue with your reasoning. The output I'm seeing from your API link atm isn't pretty-printed, this seems to do the trick: django-tastypie.re...
9y, 11w 3 replies
Login or register your account to reply
Dave Walk There are API consoles for Chrome and elsewhere to pretty print the JSON for you. Definitely more efficient to use than basic calls in a browser window.
9y, 11w 1 reply
Eric If you can make the raw data pretty without any side effect why not do it? Then it will display nicely on any device or browser, plus curious minds can have a peep. If the goal of the api is to provide clear cut readable info why not serve it the best you can?
9y, 11w reply
🦿 Lucian Marin I'm using a browser extension like JSON Formatter (github.com/calluml...) to do that.
9y, 11w reply