-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Encode JSON with JSON_PRETTY_PRINT flag
- Loading branch information
1 parent
bff2903
commit 0e7fb9b
Showing
63 changed files
with
1,095 additions
and
62 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
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
14 changes: 13 additions & 1 deletion
14
...ecification/Json/IsObject/Schema/HasType/IsScalar/WithPropertyDefinitions/normalized.json
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 +1,13 @@ | ||
{"foo":{},"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}}} | ||
{ | ||
"foo": {}, | ||
"bar": { | ||
"baz": { | ||
"qux": "quux", | ||
"quuz": "corge" | ||
}, | ||
"grault": { | ||
"fred": "plugh", | ||
"garply": "waldo" | ||
} | ||
} | ||
} |
15 changes: 14 additions & 1 deletion
15
...ct/Schema/HasType/IsScalar/WithPropertyDefinitionsAndAdditionalProperties/normalized.json
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 +1,14 @@ | ||
{"foo":{},"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}},"thud":"xyzzy"} | ||
{ | ||
"foo": {}, | ||
"bar": { | ||
"baz": { | ||
"qux": "quux", | ||
"quuz": "corge" | ||
}, | ||
"grault": { | ||
"fred": "plugh", | ||
"garply": "waldo" | ||
} | ||
}, | ||
"thud": "xyzzy" | ||
} |
14 changes: 13 additions & 1 deletion
14
...fication/Json/IsObject/Schema/HasType/IsScalar/WithoutPropertyDefinitions/normalized.json
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 +1,13 @@ | ||
{"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}},"foo":{}} | ||
{ | ||
"bar": { | ||
"baz": { | ||
"qux": "quux", | ||
"quuz": "corge" | ||
}, | ||
"grault": { | ||
"fred": "plugh", | ||
"garply": "waldo" | ||
} | ||
}, | ||
"foo": {} | ||
} |
17 changes: 16 additions & 1 deletion
17
...ormalizes/WithCustomJsonPointerSpecification/Json/IsObject/Schema/IsEmpty/normalized.json
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 +1,16 @@ | ||
{"bar":[{"foo":9000,"bar":["foo","bar","baz"]},{"foo":9001}],"foo":"bar"} | ||
{ | ||
"bar": [ | ||
{ | ||
"foo": 9000, | ||
"bar": [ | ||
"foo", | ||
"bar", | ||
"baz" | ||
] | ||
}, | ||
{ | ||
"foo": 9001 | ||
} | ||
], | ||
"foo": "bar" | ||
} |
12 changes: 11 additions & 1 deletion
12
...s/WithDefaultJsonPointerSpecification/Json/IsArray/Schema/HasAnyOf/Direct/normalized.json
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 +1,11 @@ | ||
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}] | ||
[ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
"https:\/\/github.com\/localheinz", | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] |
12 changes: 11 additions & 1 deletion
12
...DefaultJsonPointerSpecification/Json/IsArray/Schema/HasAnyOf/HasReference/normalized.json
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 +1,11 @@ | ||
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}] | ||
[ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
"https:\/\/github.com\/localheinz", | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] |
12 changes: 11 additions & 1 deletion
12
...s/WithDefaultJsonPointerSpecification/Json/IsArray/Schema/HasOneOf/Direct/normalized.json
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 +1,11 @@ | ||
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}] | ||
[ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
"https:\/\/github.com\/localheinz", | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] |
12 changes: 11 additions & 1 deletion
12
...DefaultJsonPointerSpecification/Json/IsArray/Schema/HasOneOf/HasReference/normalized.json
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 +1,11 @@ | ||
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}] | ||
[ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
"https:\/\/github.com\/localheinz", | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] |
15 changes: 14 additions & 1 deletion
15
...izes/WithDefaultJsonPointerSpecification/Json/IsArray/Schema/HasReference/normalized.json
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 +1,14 @@ | ||
[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}] | ||
[ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
{ | ||
"type": "GitHub", | ||
"url": "https:\/\/github.com\/localheinz" | ||
}, | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] |
6 changes: 5 additions & 1 deletion
6
...ecification/Json/IsArray/Schema/HasType/IsArray/WithItemDefinition/IsList/normalized.json
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 +1,5 @@ | ||
["foo","bar","baz"] | ||
[ | ||
"foo", | ||
"bar", | ||
"baz" | ||
] |
11 changes: 10 additions & 1 deletion
11
...cification/Json/IsArray/Schema/HasType/IsArray/WithItemDefinition/IsTuple/normalized.json
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 +1,10 @@ | ||
[9001,false,null,"Andreas M\u00f6ller",{"type":"Website","url":"https:\/\/localheinz.com"}] | ||
[ | ||
9001, | ||
false, | ||
null, | ||
"Andreas M\u00f6ller", | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
} | ||
] |
6 changes: 5 additions & 1 deletion
6
...erSpecification/Json/IsArray/Schema/HasType/IsArray/WithoutItemDefinition/normalized.json
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 +1,5 @@ | ||
["foo","bar","baz"] | ||
[ | ||
"foo", | ||
"bar", | ||
"baz" | ||
] |
6 changes: 5 additions & 1 deletion
6
...cification/Json/IsArray/Schema/HasType/IsScalar/WithItemDefinition/IsList/normalized.json
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 +1,5 @@ | ||
["foo","bar","baz"] | ||
[ | ||
"foo", | ||
"bar", | ||
"baz" | ||
] |
11 changes: 10 additions & 1 deletion
11
...ification/Json/IsArray/Schema/HasType/IsScalar/WithItemDefinition/IsTuple/normalized.json
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 +1,10 @@ | ||
[9001,false,null,"Andreas M\u00f6ller",{"type":"Website","url":"https:\/\/localheinz.com"}] | ||
[ | ||
9001, | ||
false, | ||
null, | ||
"Andreas M\u00f6ller", | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
} | ||
] |
9 changes: 8 additions & 1 deletion
9
...rSpecification/Json/IsArray/Schema/HasType/IsScalar/WithoutItemDefinition/normalized.json
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 +1,8 @@ | ||
[{"baz":9000},{"baz":9001}] | ||
[ | ||
{ | ||
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
} | ||
] |
10 changes: 9 additions & 1 deletion
10
...ormalizes/WithDefaultJsonPointerSpecification/Json/IsArray/Schema/IsEmpty/normalized.json
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 +1,9 @@ | ||
["foo","bar","baz",{"baz":"qux","foo":"bar"}] | ||
[ | ||
"foo", | ||
"bar", | ||
"baz", | ||
{ | ||
"baz": "qux", | ||
"foo": "bar" | ||
} | ||
] |
9 changes: 8 additions & 1 deletion
9
...malizes/WithDefaultJsonPointerSpecification/Json/IsObject/Schema/HasAnyOf/normalized.json
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 +1,8 @@ | ||
{"name":"Andreas M\u00f6ller","urls":["https:\/\/localheinz.com","https:\/\/github.com\/localheinz","https:\/\/twitter.com\/localheinz"]} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"urls": [ | ||
"https:\/\/localheinz.com", | ||
"https:\/\/github.com\/localheinz", | ||
"https:\/\/twitter.com\/localheinz" | ||
] | ||
} |
9 changes: 8 additions & 1 deletion
9
...malizes/WithDefaultJsonPointerSpecification/Json/IsObject/Schema/HasOneOf/normalized.json
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 +1,8 @@ | ||
{"name":"Andreas M\u00f6ller","urls":["https:\/\/localheinz.com","https:\/\/github.com\/localheinz","https:\/\/twitter.com\/localheinz"]} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"urls": [ | ||
"https:\/\/localheinz.com", | ||
"https:\/\/github.com\/localheinz", | ||
"https:\/\/twitter.com\/localheinz" | ||
] | ||
} |
18 changes: 17 additions & 1 deletion
18
...zes/WithDefaultJsonPointerSpecification/Json/IsObject/Schema/HasReference/normalized.json
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 +1,17 @@ | ||
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"urls": [ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
{ | ||
"type": "GitHub", | ||
"url": "https:\/\/github.com\/localheinz" | ||
}, | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] | ||
} |
18 changes: 17 additions & 1 deletion
18
...pecification/Json/IsObject/Schema/HasType/IsArray/WithPropertyDefinitions/normalized.json
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 +1,17 @@ | ||
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"urls": [ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
{ | ||
"type": "GitHub", | ||
"url": "https:\/\/github.com\/localheinz" | ||
}, | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] | ||
} |
7 changes: 6 additions & 1 deletion
7
...ect/Schema/HasType/IsArray/WithPropertyDefinitionsAndAdditionalProperties/normalized.json
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 +1,6 @@ | ||
{"name":"Andreas M\u00f6ller","url-github":"https:\/\/github.com\/localheinz","url-twitter":"https:\/\/twitter.com\/localheinz","url-website":"https:\/\/localheinz.com"} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"url-github": "https:\/\/github.com\/localheinz", | ||
"url-twitter": "https:\/\/twitter.com\/localheinz", | ||
"url-website": "https:\/\/localheinz.com" | ||
} |
12 changes: 11 additions & 1 deletion
12
...ification/Json/IsObject/Schema/HasType/IsArray/WithoutPropertyDefinitions/normalized.json
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 +1,11 @@ | ||
{"bar":[{"baz":9000},{"baz":9001}],"foo":"hello"} | ||
{ | ||
"bar": [ | ||
{ | ||
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
} | ||
], | ||
"foo": "hello" | ||
} |
18 changes: 17 additions & 1 deletion
18
...ecification/Json/IsObject/Schema/HasType/IsScalar/WithPropertyDefinitions/normalized.json
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 +1,17 @@ | ||
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"urls": [ | ||
{ | ||
"type": "Website", | ||
"url": "https:\/\/localheinz.com" | ||
}, | ||
{ | ||
"type": "GitHub", | ||
"url": "https:\/\/github.com\/localheinz" | ||
}, | ||
{ | ||
"type": "Twitter", | ||
"url": "https:\/\/twitter.com\/localheinz" | ||
} | ||
] | ||
} |
7 changes: 6 additions & 1 deletion
7
...ct/Schema/HasType/IsScalar/WithPropertyDefinitionsAndAdditionalProperties/normalized.json
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 +1,6 @@ | ||
{"name":"Andreas M\u00f6ller","url-github":"https:\/\/github.com\/localheinz","url-twitter":"https:\/\/twitter.com\/localheinz","url-website":"https:\/\/localheinz.com"} | ||
{ | ||
"name": "Andreas M\u00f6ller", | ||
"url-github": "https:\/\/github.com\/localheinz", | ||
"url-twitter": "https:\/\/twitter.com\/localheinz", | ||
"url-website": "https:\/\/localheinz.com" | ||
} |
12 changes: 11 additions & 1 deletion
12
...fication/Json/IsObject/Schema/HasType/IsScalar/WithoutPropertyDefinitions/normalized.json
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 +1,11 @@ | ||
{"bar":[{"baz":9000},{"baz":9001}],"foo":"hello"} | ||
{ | ||
"bar": [ | ||
{ | ||
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
} | ||
], | ||
"foo": "hello" | ||
} |
Oops, something went wrong.