DenoDDeno
Powered by
QuantumQ
Denoβ€’3y agoβ€’
3 replies
Quantum

Is there a built-in parser for the string that Deno.inspect produces?

I found out in another thread that Deno.inspect(myObj) produces a visually gorgeous string representation of objects and can represent internal data structures that JSON.stringify fails to represent.

(Thank you @cknight for helping me with that!)

My next question is, does Deno happen to have the analog of JSON.parse for what gets output by Deno.inspect? Can we take the Deno.inspect output and turn it back into what would become a clone of the original object?

(To be clear: I am not asking if JSON.parse will do this. I am asking if there is a nifty Deno function that does it.)
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a typo in deno -h ?
Nathan ODSNNathan ODS / help
17mo ago
Anyone aware of a streaming multipart parser for Deno?
Mark GMMark G / help
3y ago
Is there a good dataframe library for deno?
jcayzacJjcayzac / help
4y ago
is there a deno CSS linter?
dan.the.discloserDdan.the.discloser / help
2y ago