How can I input more than one field with the same name, like often occuring in json files
`// create an empty structure (null)
json j;
// add a number that is stored as double (note the implicit conversion of j to an object)
j["pi"] = 3.141;
// add a second number that is stored as double (note the implicit conversion of j to an object)
j["pi"] = 3.14151;
it seems as if the first is just overwritten. Am I missing something here?
`
How can I input more than one field with the same name, like often occuring in json files
`// create an empty structure (null)
json j;
// add a number that is stored as double (note the implicit conversion of j to an object)
j["pi"] = 3.141;
// add a second number that is stored as double (note the implicit conversion of j to an object)
j["pi"] = 3.14151;
it seems as if the first is just overwritten. Am I missing something here?
`