JSON Syntax, what is this?

Posted by danp on Stack Overflow See other posts from Stack Overflow or by danp
Published on 2010-06-16T08:56:09Z Indexed on 2010/06/16 9:02 UTC
Read the original article Hit count: 180

Filed under:

I understand concepts of JSON ok, but after starting to use ebay's api, I came across a notation which I've not seen before, and was wondering if anyone could explain what's going on with it?

{
"findItemsByKeywordsResponse": [
    {
        "ack": [
            "Success" 
        ],
        "version": [
            "1.5.0" 
        ],
        "timestamp": [
            "2010-06-16T08:42:21.468Z" 
        ],
        "searchResult": [
            {
                "@count": "0" 
            } 
        ],
        "paginationOutput": [
            {
                "pageNumber": [
                    "0" 
                ],
                "entriesPerPage": [
                    "10" 
                ],
                "totalPages": [
                    "0" 
                ],
                "totalEntries": [
                    "0" 
                ] 
            } 
        ] 
    } 
]

}

What's the "@count" thing? I noticed when I reference it in chrome, it throws an error:

chrome error

But in Firefox not. JSON Lint reports it's valid, as I'd expect... ;)

© Stack Overflow or respective owner

Related posts about JSON