Web API Return XML - How to Convert to JSON

drted
Wed, 09 Dec 2020 22:18:06 +0000
Questions about Thunkable

Alright you power Thunkers. I’m cashing in some makers, because I’m in the

I’m working with a WebAPI that is returning XML. Why, because it is a HARDWARE company, not a SOFTWARE company.

Here are my constraints:

Lim f(solution) = Thunkable

prefer flexible solution

Unafraid of using firebase hosting

Any TPA (third party applications) must be 100% free

I’m not 100% against going full-bore Mighty-Morphing-Power-Rangers on combining, TPAs but the closer I can keep it to native Thunkable, the happier I will be.

Here is a sample of the response I am receiving. Of course, I would prefer a flexible solution, but if I am forced to hard-code the XML hierarchy, I guess I will

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
<feedMessageResponse>
<count>2</count>
<feed>
<id>0IMiUuM0ZD3er3bv8zndqdxqnjHVhSA0a</id>
<name>DrTed</name>
<description>DrTed</description>
<status>ACTIVE</status>
<usage>0</usage>
<daysRange>7</daysRange>
<detailedMessageShown>true</detailedMessageShown>
<type>SHARED_PAGE</type>
</feed>
<totalCount>2</totalCount>
<activityCount>0</activityCount>
<messages>
<message clientUnixTime="0">
<id>1514978703</id>
<messengerId>0-3553617</messengerId>
<messengerName>TedSpot</messengerName>
<unixTime>1607550566</unixTime>
<messageType>UNLIMITED-TRACK</messageType>
<latitude>44.5346</latitude>
<longitude>-123.25397</longitude>
<modelId>SPOT3</modelId>
<showCustomMsg>Y</showCustomMsg>
<dateTime>2020-12-09T21:49:26+0000</dateTime>
<batteryState>GOOD</batteryState>
<hidden>0</hidden>
<altitude>89</altitude>
</message>
<message clientUnixTime="0">
<id>1514975409</id>
<messengerId>0-3553617</messengerId>
<messengerName>TedSpot</messengerName>
<unixTime>1607550110</unixTime>
<messageType>OK</messageType>
<latitude>44.53466</latitude>
<longitude>-123.25397</longitude>
<modelId>SPOT3</modelId>
<showCustomMsg>Y</showCustomMsg>
<dateTime>2020-12-09T21:41:50+0000</dateTime>
<batteryState>GOOD</batteryState>
<hidden>0</hidden>
<messageContent>Everything is good on my ride.</messageContent>
<altitude>0</altitude>
</message></messages>
</feedMessageResponse>
</response>

7 posts - 3 participants