Closed KyleAMathews closed 10 years ago
+1 that would be nice, but you need to detect what the encoding is, or something else creative ;)
It's not hard to test if a string is json like:
try {
JSON.parse(x);
} catch (e) {
console.log("not JSON");
}
But making pretty-print an explicit option would be fine.
this is now available the tui
branch. will merge into master soon
also, tab completion is now colorized which makes the data much more readable.
I mostly use leveldb to store json. It'd be nice if the REPL could detect the value is json and pretty-print it.