-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output json is corrupted #1793
Comments
I do not understand the problem. What is "strange" and what do you mean with "Almost no brackets and order of data"? |
"Strange" is result "weatherData" json where all data is not in json format(no brackets e.t.c) . For example COUT of buf variable is in proper json format (with brackets, quots etc) Why buf's and weatherData's output in console(cout's) is so different/ |
Issue was solved, problem was what I am derp ! I used
what showed only values (strings in my case and num 1) not all the data like brackets ,spaces and quots(i mean this ->"")
and all is OK! |
Well if i try asign parsed json to another json the output of second json is will be "broken"(some info its saves like variables buy some will not)
readBuffer is string gained from server I want to parse it but result is "strange" if i want for example show it in console:
here is code
cout buf result is
I cout(using forloop with iterators to get all content) WeatherData result is
Almost no brackets and order of data
OS windows 7 x64 , using Visual Studio 2017
JSON for Modern c++ v3.7.0
The text was updated successfully, but these errors were encountered: