Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / JSON in Tier 1?

Author
Message
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 27th Mar 2016 00:00
I would like to get player data from my server and output these data in JSON format. Now, is there a json parser in Tier 1? If not, what format would you guys recommend?

If there are no native function to parse data format, I will probably go with something like this

data1@data2@data3@data4

and create my own parser.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Mar 2016 09:18
There is no native parser, but a few people have written code for XML (Scraggle did this) and others.
GetStringToken() is your best friend for parsing data.
On a basic level, I parse parameter files in this module.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-09-29 13:22:26
Your offset time is: 2024-09-29 13:22:26