Page 1 of 1

JSON/XML api responses

Posted: Sat Jun 29, 2013 9:39 pm
by torba
The current text response is horrific, why go through having to parse that plaintext response when most languages can interpret json/xml easily into an array?

Re: JSON/XML api responses

Posted: Sat Jun 29, 2013 9:47 pm
by Kent Briggs
torba wrote:The current text response is horrific, why go through having to parse that plaintext response when most languages can interpret json/xml easily into an array?
I agree the current API protocol was a poor choice. XML would be even worse with all the duplicate open and close tags. JSON is the way to go. Version 4 will use JSON for the server to client protocol. It probably won't be until version 5 before I revamp the server and make the API in JSON format also.

Re: JSON/XML api responses

Posted: Sat Jun 29, 2013 9:48 pm
by torba
Kent Briggs wrote:
torba wrote:The current text response is horrific, why go through having to parse that plaintext response when most languages can interpret json/xml easily into an array?
I agree the current API protocol was a poor choice. XML would be even worse with all the duplicate open and close tags. JSON is the way to go. Version 4 will use JSON for the server to client protocol. It probably won't be until version 5 before I revamp the server and make the API in JSON format also.
Thank you :D