That block (bar the stray , at the end) is valid.
What I think is not valid is when you combine valid blocks together without naming them. Items in red is where I think something should be. It is the equivilant of having a blank xml tag (<>)
{
"details":{"Resource":"video","returnedSize":2,"totalSize":60},
"items":[{"Show":"Blip TV Photoshop Users TV","region":"UK","URL":"http:\/\/blip.tv\/photoshop-user-tv\/rss","resourceType":"RSS \/ Atom feed","plugin":"Blip TV"},{"Show":"TV Highlights","region":"UK","URL":"http:\/\/feeds.bbc.co.uk\/iplayer\/highlights\/tv","resourceType":"RSS \/ Atom feed","plugin":"iPlayer (UK)"}]}
Which is why I equested
- Code:
Code:
{
"resource": "plugin",
"returnedSize": 10,
"totalSize": 15,
"items": [
{
"name": "Hulu (US)",
"revision": "1",
"url": "http://serviidb.com/sites/default/files/Hulu.groovy"
}
]
}
I've just tried an online validator on your full propsed response
- Code:
[{"Resource":"video","returnedSize":2,"totalSize":60},[{"Show":"Blip TV Photoshop Users TV","region":"UK","URL":"http:\/\/blip.tv\/photoshop-user-tv\/rss","resourceType":"RSS \/ Atom feed","plugin":"Blip TV"},{"Show":"TV Highlights","region":"UK","URL":"http:\/\/feeds.bbc.co.uk\/iplayer\/highlights\/tv","resourceType":"RSS \/ Atom feed","plugin":"iPlayer (UK)"}]]
It is 'valid' due to the starting [ and ending ], because that makes it an array so the blocks don't have to be named, however, it shouldn't be reprsented as an array because {resource,returnedSize,totalSize} is not the same type as {show,region,resourceType,url,plugin}.
Changing the end [] to {} makes it invalid, until you change it to match what I had proposed.