Official Solution to parse JSON?

Get help using Construct 2

Post » Tue Dec 03, 2013 5:42 pm

Is there an official C2 Solution to parse JSON?

Seem alot of posts on a number of plugin that could do this but made long ago.

So whats the best practices and are there tutorial/info on it?

Thx :)
B
5
S
1
Posts: 78
Reputation: 556

Post » Tue Dec 03, 2013 7:39 pm

you can load jsons into an array natively, but you need to have them formated in the way construct wants them

here is an example:
{"c2array":true,"size":[4,2,5],"data":[[["Hund","dog","chien","?","??????"],["Haus","house","maison","?","???"]],[["Katze","cat","chat","?","?????"],["Auto","car","voiture","?","??????????"]],[["Maus","mouse","souris","???","????"],["Strae","street","route","??","??????"]],[[0,0,0,0,0],[0,0,0,0,0]]]}mindfaQ2013-12-03 19:41:12
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 24 guests