A one-line object with an array
- JSON
- {"a":1,"b":[1,2]}
- Indent
- 2 spaces
- Sort object keys A to Z
- No
Result Beautified JSON: {
"a": 1,
"b": [
1,
2
]
}
Lines: 7
Nesting depth: 2
Objects: 1
Arrays: 1
Keys: 2
Input characters: 17
Output characters: 39
- Parsed 17 characters as JSON: 1 objects, 1 arrays, 2 keys.
- Kept keys in their original order.
- Printed with 2-space indentation: 7 lines, 39 characters.
Seventeen characters of minified JSON open up into seven lines; the array elements sit two levels deep.