I am trying to convert a javascript array to a json string to store in my database, which plots the co-ordinates and such drawn onto a html5 canvas element.
My problem is that with some values, they seem to be being abbreviated or something by the JSON.stringify function. For example, I have a bunch of data that looks something like this:
[340,154,"dragstart",6,"db3733"]
But sometimes, this will happen to some values (usually when I ‘stringify’ alot of data):
[311,...6,"db3733"]
Why is this happening?
console.log(and the like) do often display ellipsis instead of very long strings or arrays when inspecting an object, yet usually you can expand them (by clicking on+or something).