POST, doesn't like my JSON?

POST, doesn't like my JSON?

When POSTing to, I am getting weird errors.

If I set the Content-Type to application/json, I get Bad Request.  If not, I get "No JSON object could be decoded".

Other calls in the context API are working fine.

Multiple parsers tell me it's valid.  My JSON:

  "data": {
    "items": [
        "contextType": "urn:x-intel:context:type:location:current",
        "value": {
          "latitude": 45.520082,
          "longitude": 122.676103

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Are you using devteset or production client id/secret?



your data is ok, I tried to send it and it worked fined in dev. environment.

Do you have the right permissions ? Have you not forgotten the authentication token ?

Leave a Comment

Please sign in to add a comment. Not a member? Join today