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,238 times
1
Psl
- 3,602
- 13
- 43
- 78
-
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,581
- 2
- 17
- 24