xml to json

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

xml to json

Postby satanete666 » Sat Jun 04, 2022 9:28 am

Hi,

Is any way to parse a xml structure to json in widget designer?

Regards
satanete666
 
Posts: 198
Joined: Fri May 20, 2011 5:20 pm

Re: xml to json

Postby Daniel Kaminski » Sun Jun 05, 2022 5:56 pm

Hi,

no, not at the moment.

Daniel
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1050
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: xml to json

Postby Daniel Kaminski » Fri Jul 08, 2022 12:17 pm

Looks like I was wrong. Our developers pointed out that we do have a command.

Try this command: JsonLoadXmlFileToVar

AThe next release will also support: XMLRequestToVar

Does this help.

Daniel
You do not have the required permissions to view the files attached to this post.
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1050
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: xml to json

Postby satanete666 » Thu Aug 04, 2022 5:41 pm

Hi Daniel,

Is possible to use this function but reading from a web Page?
satanete666
 
Posts: 198
Joined: Fri May 20, 2011 5:20 pm

Re: xml to json

Postby JustynR » Tue Aug 09, 2022 4:24 pm

That depends on the web page.
What is the site you're trying to get?

For instance, I use an endpoint for Major League Baseball for an application I've built:

https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=2022-08-09

But, the front 'public' side of their site isn't a simple API:
https://www.mlb.com/schedule/2022-08-09

This public-facing website will load the graphics, then use this API to have the client (your browser) fill in the data.
A lot (most) sites work like this - however, the API is often locked

There are ways to 'scrape' a website and create your own endpoint, but issues will arise if the website you're scraping is updated or changed.

There are also some APIs that allow you to specify the format as well.

Use the "HTTPToVariable" command to get you started.
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 556
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 0 guests