Matthew Seremet

Search here

Search Results

{{ search.results_length }} items found. UnHide Results
All artworks © Matthew Seremet, 2016
Theme by Matthew Seremet.
Built on the ArtSho.ws portfolio network.
Cover Image: Prev, Next, Peek

News

Print_r with javascript

Posted: Oct 8th

Print_r with javascript

Taken from this StackOveflow answer.

Example:

var obj = {x: 1, y: 2, z: 3};

console.log( JSON.stringify(obj, null, 2) ); // spacing level = 2 The above snippet will print:

{
  "x": 1,
  "y": 2,
  "z": 3
}