+ 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 ?
4 Réponses
+ 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)
+ 1
Are you asking how to read a json file from your main cpp?
+ 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
- 6
Xxgccvvbhb