-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(json): change default indent from 2 to 4
This is not a breaking change for user code that follows current type annotations. Allow boolean `json_indent` in public functions. Now this default is part of the API.
- Loading branch information
Showing
10 changed files
with
73 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
{ | ||
"title": "TOML Example", | ||
"owner": { | ||
"name": "Tom Preston-Werner", | ||
"organization": "GitHub", | ||
"bio": "GitHub Cofounder & CEO\nLikes tater tots and beer.", | ||
"dob": "1979-05-27T07:32:00+00:00" | ||
}, | ||
"database": { | ||
"server": "192.168.1.1", | ||
"ports": [ | ||
8001, | ||
8001, | ||
8002 | ||
], | ||
"connection_max": 5000, | ||
"enabled": true | ||
}, | ||
"servers": { | ||
"alpha": { | ||
"ip": "10.0.0.1", | ||
"dc": "eqdc10" | ||
"title": "TOML Example", | ||
"owner": { | ||
"name": "Tom Preston-Werner", | ||
"organization": "GitHub", | ||
"bio": "GitHub Cofounder & CEO\nLikes tater tots and beer.", | ||
"dob": "1979-05-27T07:32:00+00:00" | ||
}, | ||
"beta": { | ||
"ip": "10.0.0.2", | ||
"dc": "eqdc10", | ||
"country": "中国" | ||
} | ||
}, | ||
"clients": { | ||
"data": [ | ||
[ | ||
"gamma", | ||
"delta" | ||
], | ||
[ | ||
1, | ||
2 | ||
] | ||
], | ||
"hosts": [ | ||
"alpha", | ||
"omega" | ||
] | ||
}, | ||
"products": [ | ||
{ | ||
"name": "Hammer", | ||
"sku": 738594937 | ||
"database": { | ||
"server": "192.168.1.1", | ||
"ports": [ | ||
8001, | ||
8001, | ||
8002 | ||
], | ||
"connection_max": 5000, | ||
"enabled": true | ||
}, | ||
"servers": { | ||
"alpha": { | ||
"ip": "10.0.0.1", | ||
"dc": "eqdc10" | ||
}, | ||
"beta": { | ||
"ip": "10.0.0.2", | ||
"dc": "eqdc10", | ||
"country": "中国" | ||
} | ||
}, | ||
{ | ||
"name": "Nail", | ||
"sku": 284758393, | ||
"color": "gray" | ||
} | ||
] | ||
"clients": { | ||
"data": [ | ||
[ | ||
"gamma", | ||
"delta" | ||
], | ||
[ | ||
1, | ||
2 | ||
] | ||
], | ||
"hosts": [ | ||
"alpha", | ||
"omega" | ||
] | ||
}, | ||
"products": [ | ||
{ | ||
"name": "Hammer", | ||
"sku": 738594937 | ||
}, | ||
{ | ||
"name": "Nail", | ||
"sku": 284758393, | ||
"color": "gray" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"foo": "2012-12-12" | ||
"foo": "2012-12-12" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"foo": "2012-12-12T12:34:56" | ||
"foo": "2012-12-12T12:34:56" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"foo": "2012-12-12T12:34:56+00:00" | ||
"foo": "2012-12-12T12:34:56+00:00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"balanceHeld": { | ||
"description": "Balance of the account held for transferring to other users (in cents) and then a bunch more text after that", | ||
"type": "integer" | ||
} | ||
"balanceHeld": { | ||
"description": "Balance of the account held for transferring to other users (in cents) and then a bunch more text after that", | ||
"type": "integer" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"foo": 1, | ||
"bar": 2, | ||
"baz": 3 | ||
"foo": 1, | ||
"bar": 2, | ||
"baz": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"bar": 2, | ||
"baz": 3, | ||
"foo": 1 | ||
"bar": 2, | ||
"baz": 3, | ||
"foo": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"foo": "12:34:56" | ||
"foo": "12:34:56" | ||
} |