Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] JSON file and IE

Started by Black Knight Nov 8, 2010 at 8:35 PM 1 replies 1.8k views
Original Post
Black Knight
Black Knight
Hi,

I've downloaded this file :
http://www.json.org/json2.js

Added it to my index page before my own &#106avascript file:
Black Knight
Black Knight
Looks like it was a comma in the json file, running it through JSON validator brought it up.
{	"name": "Black knight",		"images": {		"image1" : "assets/1.jpg",		"image2" : "assets/2.jpg",		"image3" : "assets/3.jpg",		"image4" : "assets/4.jpg",	}}


The last comma was breaking things in IE.
benryves
benryves
This has been "corrected" in IE 8, though yes, for old versions you do need to strip out any trailing commas.
[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.