Linked Questions
10 questions linked to/from JavaScript data formatting/pretty printer
64
votes
8
answers
148k
views
jQuery: print_r() display equivalent? [duplicate]
Possible Duplicate:
JavaScript data formatting/pretty printer
I am getting a bit tired of looking at unformatted json blobs in FireBug.
Does anyone know an equivalent to PHP's print_r() for ...
2
votes
1
answer
6k
views
How do I display a JSON object in a pretty format , on my webpage? [duplicate]
Possible Duplicate:
JavaScript data formatting/pretty printer
var theobject_string = '{...}'; // I have a json object as a string.
How can I display this string in a pretty way, on my webpage (...
1
vote
0
answers
44
views
Get textual (string) version of an object - displaying in the browser for debugging purposes [duplicate]
Possible Duplicate:
JavaScript data formatting/pretty printer
Would like to to translate a javascript object into a string so that I can display in the browser window.
So an object that looks ...
3550
votes
32
answers
2.0m
views
pretty-print JSON using JavaScript
How can I display JSON in an easy-to-read (for human readers) format? I'm looking primarily for indentation and whitespace, with perhaps even colors / font-styles / etc.
86
votes
4
answers
89k
views
Write formatted JSON in Node.js
I'm using Node.js to POST JSON to PostBin but the data is being wrongly formated (as you can see here: http://www.postbin.org/1cpndqw).
This is the code I'm using for tesT:
var http = require('http')...
37
votes
7
answers
15k
views
Are semicolons needed after an object literal assignment in JavaScript?
The following code illustrates an object literal being assigned, but with no semicolon afterwards:
var literal = {
say: function(msg) { alert(msg); }
}
literal.say("hello world!");
This appears ...
26
votes
7
answers
72k
views
Search a javascript object for a property with a specific value?
I have a javascript object, and I want to recursively search it to find any properties that contain a specific value.
The javascript I'm working with has been minified, and is not so easy to trace ...
16
votes
7
answers
30k
views
Is there a way to pretty-print JSON in a web page using JavaScript?
Seems to me that pretty-printing JSON is a simple enough task that JavaScript should be able to handle it. Has anyone ever written (or run across) a JavaScript function to do this?
9
votes
8
answers
2k
views
Java Object Oriented Concepts in Javascript
I have been using Java for a long time, and for quite some time I was doing web development using GWT (Google Web Toolkit). The beauty of it was that I had my Java object oriented constructs and would ...
9
votes
4
answers
481
views
Is there any equivalent to dbug (a *really* pretty print for vars) for javascript?
I'm aware of console.log in firebug, and this thing called dbug (but not at all what I want). What I'm looking for is something that will give me a pretty print nested view into an object that looks ...