Skip to content

Input several field with the same name #488

Description

@CDitzel

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?
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions