bhall2001 / fastjson

A Livecode library for JSON encoding and decoding to and from Arrays.
MIT License
17 stars 11 forks source link

JSON starting with [ does not work #9

Closed bhall2001 closed 8 years ago

bhall2001 commented 8 years ago

Any JSON string that starts with [ does not work in my tester script. Not sure if this is a problem with the sample stack or with the library. Getting this down so I remember to investigate it.

madpink commented 8 years ago

do you mean a JSON like this?

{"test":"[value]"}

bhall2001 commented 8 years ago

no. [{color: "red", value: "#f00"}]

madpink commented 8 years ago

What about: [{color: "red", value: "#f00"},{color: "green", value: "#f02"}]

if it is within brackets, it should technically contain more than 1 object

bhall2001 commented 8 years ago

I'm labeling this a bug. Found some issues with how fastJson handles arrays for data. I'm going to need some help on this I suspect. Not sure why this is so hard for me to get my head around...

bhall2001 commented 8 years ago

This has been fixed. Closed based on my testing and lack of further reports the issue still exists.