Closed Zamiell closed 1 year ago
Hi @Zamiell! Pretty-Printing is out-of-scope for SuperJSON. If you want to prettify your output, you could do the following:
JSON.stringify(SuperJSON.serialize(request), undefined, 2)
Does that solve your problem?
Ok. I'll close this issue then, thank you for the quick response.
Hello, and thanks for the library.
With normal
JSON.stringify
, I can create pretty output like so:I would like to emulate this behavior, but with superjson.
I imagine that the API could be changed from:
To something like:
Or, more simply, but less flexible for future additions: