Sign in to follow this  
flaboy

SyntaxError: JSON.parse: unexpected character pixi.dev.js:10519 on Firefox

Recommended Posts

Hi there

I've working on very simple game. I use PIXI.AssetLoader to load sprite sheets via associated with .json files. This is example star.json

{"frames": {"star0000":{	"frame": {"x":0,"y":0,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0001":{	"frame": {"x":116,"y":0,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0002":{	"frame": {"x":0,"y":110,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0003":{	"frame": {"x":116,"y":110,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0004":{	"frame": {"x":0,"y":220,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0005":{	"frame": {"x":116,"y":220,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}},"star0006":{	"frame": {"x":0,"y":330,"w":116,"h":110},	"rotated": false,	"trimmed": false,	"spriteSourceSize": {"x":0,"y":0,"w":116,"h":110},	"sourceSize": {"w":116,"h":110}}},"meta": {	"app": "Adobe Flash CS6",	"version": "12.0.2.529",	"image": "star.png",	"format": "RGBA8888",	"size": {"w":256,"h":512},	"scale": "1"}}

It works fine on Chrome, iOS Safari, Android browsers but on desktop Firefox got error:

SyntaxError: JSON.parse: unexpected character pixi.dev.js:10519

What's the problem? Shall I remove specific characters from .json file or change encoding?

Please help :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.