SFML community forums
Help => Network => Topic started by: Eevee204 on July 13, 2014, 05:43:26 am
-
Hello, I am looking to retrieve data from the database and store the values into a class. I was wondering if there was a built in class which could help me with this. I was planning to return a Json string from the PHP file and then decode it with C++, but if there is something in the SFML library that can make it easier than having to decode a Json string, that be great.
Any suggestions/ideas?
Cheers
-
... something in the SFML library that can make it easier than having to decode a Json string, that be great.
Short answer: No.
Longer answer; maybe check out PicoJSON (https://github.com/kazuho/picojson). I've personally had a lot of success with that. Nice little header-only library.
-
Shame, thought I may as well ask before I went fiddling around with other libraries, thanks for the suggestions on the picojson, will defiantly take a look at that!