what is json objects
- User
what is json objects
- Assistant
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. A JSON object is a collection of key/value pairs, where the keys are strings and the values can be any valid JSON data type, which includes:
- String: A sequence of characters enclosed in quotation marks.
- Number: An integer or floating-point number.
- Boolean: Either
trueorfalse. - Array: An ordered list of values, enclosed in square brackets.
- Object: A collection of key/value pairs, enclosed in curly braces.
- Null: A special value representing an empty or non-existent value.
Here's a simple example of a JSON object:
{ "name": "John Doe", "age": 30, "isStudent": false, "hobbies": ["reading", "hiking", "coding"], "address": { "street": "123 Main St", "city": "Anytown", "zipCode": "12345" } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.