We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1st string..
{ { "Layer", }, { "Data",{ { { "Type", },{ "Count", }, { "Point", {
} } } } }, };
2nd string..
{ "Point1", { { "X", }, { "Y", }, { "Z", } } },
how to add 2nd string into "Point" section of 1st string???
The text was updated successfully, but these errors were encountered:
The example is not JSON. Could you provide a concrete example with proper JSON or C++ code?
Sorry, something went wrong.
1st string...
{ "HATCH": [ { "Data": [ { "Count": 7, "Point": null, "Type": "Hatch" } ], "Layer": "HATCH_T" } ] }
2nd string...
{ "Point1": { "X": 4148.616151219332, "Y": 2449.979364191569, "Z": 0 } }
add 2nd string in 1st "Point" key..
Similar to #1012, use operator[] to navigate in objects and arrays:
operator[]
// assuming s1 is the JSON value for the first string and s2 the one for the second string s1["HATCH"][0]["Data"][0]["Point"].push_back(s2);
@Mamlesh Did that work?
No branches or pull requests
1st string..
{ { "Layer", },
{ "Data",{
{ { "Type", },{ "Count", },
{ "Point",
{
}
}
}
} },
};
2nd string..
{ "Point1",
{
{ "X", },
{ "Y", },
{ "Z", }
} },
how to add 2nd string into "Point" section of 1st string???
The text was updated successfully, but these errors were encountered: