I want to print [object Object],[object Object]
to like wise "[[{ 'x': '1', 'y': '0' }, { 'x': '2', 'y': '1' }]]";
How it is possible in javascript
Asked
Active
Viewed 4,372 times
1

Psl
- 3,830
- 16
- 46
- 84
-
Have you attempted at doing this? Perhaps following this: http://stackoverflow.com/questions/558518/how-to-serialise-on-object-to-json-in-javascript ? – djthoms Mar 28 '13 at 05:23
1 Answers
4
If you want a string representation of a JavaScript object, use JSON.stringify()

metadept
- 7,831
- 2
- 18
- 25