Skip to content

Commit

Permalink
Consistently use two spaces for JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Dec 6, 2024
1 parent 8a3ca14 commit 63ccd9f
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions path_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,41 +145,41 @@ func firstFunc(jv []spec.JSONPathValue) spec.JSONPathValue {
// bookstore returns an unmarshaled JSON object.
func bookstore() any {
src := []byte(`{
"store": {
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
},
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
},
{
"category": "fiction",
"author": "J. R. R. Tolkien",
"title": "The Lord of the Rings",
"isbn": "0-395-19395-8",
"price": 22.99
}
],
"bicycle": {
"color": "red",
"price": 399
}
}
}`)
"store": {
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
},
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
},
{
"category": "fiction",
"author": "J. R. R. Tolkien",
"title": "The Lord of the Rings",
"isbn": "0-395-19395-8",
"price": 22.99
}
],
"bicycle": {
"color": "red",
"price": 399
}
}
}`)

// Parse the JSON.
var value any
Expand Down

0 comments on commit 63ccd9f

Please sign in to comment.