Felgo does not provide a quick way of converting XML to JSON. If possible, it’s easiest if your API already return JSON objects from the start.
If you are going to use the returned XML data for display in your views, you can have also have a look at the XmlListModel type. You can use it to fill your UI based on XML data instead of a JSON-structure when working with model-delegate based UI components. (e.g. AppListView, Repeater, …)
Yes I finally got XML data to come back. Which component will work best to return the data model the way I want to. Like for an example I want just the last data from the model… Would I be able to view some code snippets… Thanks!
It is possible to work with the model in a similar way for all UI components that support the model-delegate system, e.g. our AppListView or a plain Repeater.
For more information on how models work, please consider having a look at the documentation of Models and Views in Qt Quick.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: