How do I can read a external JSON or XML file?

Get help using Construct 2

Post » Wed Feb 11, 2015 12:31 pm

Hi guys.

I've found an API for a MMORPG.

This site distribute an API in this format

census.soe.com/s:example/json/get/ps2:v2/character

or

census.soe.com/s:example/xml/get/ps2:v2/character

How can i take this content and read in my app?

Thanks so much for all
B
5
Posts: 14
Reputation: 253

Post » Wed Feb 11, 2015 7:30 pm

UP

No one can help me?
B
5
Posts: 14
Reputation: 253

Post » Thu Feb 12, 2015 1:30 am

I would recommend the xml option. You can do this with the AJAX object and the XML object. You can read the tutorials here:

https://www.scirra.com/manual/139/xml

https://www.scirra.com/manual/107/ajax
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,388

Post » Tue Feb 17, 2015 12:05 am

I've just tried with this two tutorial.

But didn't work.

Someone can try and post correct code pls?
B
5
Posts: 14
Reputation: 253

Post » Tue Feb 17, 2015 1:59 pm

UP
B
5
Posts: 14
Reputation: 253

Post » Thu Feb 19, 2015 10:00 am

Hmm do you know you can convert the JSON file to CSV using json-csv.com...maybe that would be easier to work with.
B
2
Posts: 2
Reputation: 154

Post » Thu Feb 19, 2015 10:50 am

There are more than one API in this site.

And i need send some informations on input...

I can't use CSV :)
B
5
Posts: 14
Reputation: 253


Post » Thu Feb 19, 2015 11:50 am

Yes i've read but it's usless.

I don't want download file from the website.
B
5
Posts: 14
Reputation: 253

Post » Thu Feb 19, 2015 12:05 pm

Your choice not mine. If one wants to learn he or she would do anything. In your case sorry no comment
B
226
S
31
G
14
Posts: 1,899
Reputation: 38,302

Next

Return to How do I....?

Who is online

Users browsing this forum: Benhh, oddreal and 9 guests