Pretty-Printing Variables, Objects, and Functions in JavaScriptCore
By default, the string output of JSValue
in JavaScriptCore printing (e.g. via my console.log
) will produce a mere [object Object]
. That’s not very helpful. It’s simple to pretty-print objects (if they are merely data-containers) via JSON: