Quantcast
Channel: OpenCalais - Known Issues
Viewing all articles
Browse latest Browse all 525

JSON returned by OpenCalais is (sometimes) not a valid JSON response

$
0
0

Hi,
first of all: thanks for this great tool! It's really astonishing what OpenCalais does!
However, I am currently stuck using the API. I am OC to parse HTML text. Everything works fine, except the fact, that the resulting JSON is invalid.
For instance, OC returns something like this:

    "http://d.opencalais.com/genericHasher-1/5715cdb9-ce78-389a-a45d-86c0bd4045df": {
        "_typeGroup": "entities",
        "_type": "Technology",
        "name": "Alpha",
        "_typeReference": "http://s.opencalais.com/1/type/em/e/Technology",
        "instances": [
            {
                "detection": "[                           How does the Wolfram ]Alpha[ input                           "x^2
            ]","prefix":" How does the Wolfram ","exact":"Alpha","suffix":" input<br> "x^2",
            "offset": 152,
            "length": 5
        }
    ],
    "relevance": 0.313
 
The problem here is that the text x^2 is preceded by a quotation mark (") - see the line that starts with "detection".
Is this an OC bug, or am using the API wrongly?
Thanks for your kind support,
      Christian
 


Viewing all articles
Browse latest Browse all 525

Latest Images

Trending Articles



Latest Images