Created
August 21, 2023 11:45
-
-
Save doramatadora/5623ea90e63ea1c6a15141e2fea054e8 to your computer and use it in GitHub Desktop.
A JSON representation of XML data, with "@" attribute prefixes and "#text" content keys
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
{ | |
"bookstore": { | |
"book": [ | |
{ | |
"id": "001", | |
"title": "The Great Gatsby", | |
"author": "F. Scott Fitzgerald", | |
"publication_year": "1925", | |
"genre": { | |
"@type": "fiction", | |
"#text": "Fiction" | |
}, | |
"isbn": { | |
"@format": "paperback", | |
"#text": "978-3-16-148410-0" | |
}, | |
"price": { | |
"@currency": "USD", | |
"#text": "10.99" | |
}, | |
"description": "A classic novel about the American Dream." | |
}, | |
{ | |
"id": "002", | |
"title": "To Kill a Mockingbird", | |
"author": "Harper Lee", | |
"publication_year": "1960", | |
"genre": { | |
"@type": "fiction", | |
"#text": "Fiction" | |
}, | |
"isbn": { | |
"@format": "hardcover", | |
"#text": "978-0-06-112008-4" | |
}, | |
"price": { | |
"@currency": "USD", | |
"#text": "12.99" | |
}, | |
"description": "An enduring tale of racial injustice in the American South." | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment