0

I'm getting an 'invalid json' exception for a set of json. I tested the json in a validator. I've placed the json inside of a php file and set the header to "contenttype:application/json; charset=utf-8."

Not sure what else could be the culprit. I have my jsfiddle here: jsfiddle

1
  • 1
    That should be content-type:application/json; charset=utf-8 with a dash between content and type and without a dot at the end. Commented Apr 1, 2011 at 21:29

1 Answer 1

1

$.parseJSON doesnt load a URL, you pass it a json string. the function youre looking for is $.getJSON.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.