It may have the advantage of being more terse and human-writable, but XML has better character encoding and namespace support if you need them.
{"html": { "head": [ {"title": "Hello World!"}, {"link": { "rel": "stylesheet", "type": "text/css", "href": "/style.css" }} ], "body": [ {"h1": "Hello world!"}, {"h1": [ "Another header", {"class": "another"} ]}, {"img": { "src": "/img/myimage.png", "alt": "I no has image" }} ] }}
Do I really need to say anything else?
CSV FTW!
Enter an OpenID to invite a Jyter to this claim, or an email address to invite someone new to Jyte.
Discussion (3)
It may have the advantage of being more terse and human-writable, but XML has better character encoding and namespace support if you need them.
{"html": {"head": [
{"title": "Hello World!"},
{"link": {
"rel": "stylesheet",
"type": "text/css",
"href": "/style.css"
}}
],
"body": [
{"h1": "Hello world!"},
{"h1": [
"Another header",
{"class": "another"}
]},
{"img": {
"src": "/img/myimage.png",
"alt": "I no has image"
}}
]
}}
Do I really need to say anything else?
CSV FTW!