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 / Load JSON file in Tier2 c++

Author
Message
xtremi
User Offline
Joined: 26th Aug 2018
Location:
Posted: 16th Apr 2019 12:37
What is the proper way to load a JSON file in C++?

I tried:



here jsontype will be 0.

The path is relative to the assets folder (where I put all my media data). I also tried with an absolute path.
xtremi
User Offline
Joined: 26th Aug 2018
Location:
Posted: 16th Apr 2019 14:02
I figured it out, and made a sample code that will go through any JSON file and read the data. It doesn't do anything but at least it shows how the JSON parser works. Here is the code if anyone stumbles uppon this:



So by calling checkJSONfile("filepath.json"), this will go through all the json data.

Login to post a reply

Server time is: 2019-07-19 09:24:06
Your offset time is: 2019-07-19 09:24:06