douglascrockford / JSON-js

JSON in JavaScript
http://www.JSON.org/
8.7k stars 4.59k forks source link

cycle.js losing properties of an object #72

Closed uacharya closed 8 years ago

uacharya commented 8 years ago

screen shot 2016-01-04 at 3 35 40 pm

I have an javascript object that looks like this. But when i use JSON.decyle on this object,, it removes all of the other properties of the object and produces just "Object { l=67.86140022494648, a=-54.085032053595995, b=48.724495533444134} ". I am a beginner in javascript and cannot resolve this issue on my own. Any explanation to why it does not work or how i can fix it is appreciated . Thanks in advance