+ 6

C++ - Json

I'm starting to code biggest projects than can allow Sololearn platform. What is the better (shorter and easier) way to get Json data on my main.cpp ?

13th Jan 2019, 7:27 PM
NoxFly
NoxFly - avatar
4 ответов
+ 6
Yes. All I see is to use a lib already created by someone but I wanted to do it myself without lib (if possible)
14th Jan 2019, 8:09 AM
NoxFly
NoxFly - avatar
+ 1
Are you asking how to read a json file from your main cpp?
14th Jan 2019, 3:07 AM
Zeke Williams
Zeke Williams - avatar
+ 1
Yeah, using a lib is probably the easiest way, but it's possible to do it yourself. You'll have to learn the patterns of a json file and parse it line by line. My first thought would be to use a stack for nested objects and such. Good luck! Post your attempts if you need some help
14th Jan 2019, 2:13 PM
Zeke Williams
Zeke Williams - avatar
- 6
Xxgccvvbhb
14th Jan 2019, 6:59 PM
Muhridin Abrorov