JSON/XML api responses
JSON/XML api responses
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?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: JSON/XML api responses
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.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?
Re: JSON/XML api responses
Thank youKent Briggs wrote: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.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?