JSON vs. XML

The UI Simple wiki page shows how to obtain settings which are delivered as JSON by default, but also how to get XML instead. That page also states “This is only for testing. Your actual controller must always retrieve everything in the native json format.”

Why is this? I’m writing an app which I would prefer to send XML to… what reason should I consider to parse the data in JSON format (when I have a decent background parsing XML)? Am I risking causing any problems?

It causes vera to work harder. Vera has to take the data and convert it to xml before providing it to you. This takes additional resources and takes longer. Where as json is the native format and requires no resources.

  • Garrett