Open nooblyf opened 1 year ago
Hi @nooblyf! You could use SuperJSON.serialize
, grab the json
key and stringify that using JSON.stringify
. That means all type information will be lost, though, losing the main benefit of SuperJSON. Depending on what you're looking for, JSON's replacer
option might be a better fit.
I wanted this for logging purposes only, i guess JSON.stringify
is the way to go
when i stringify anything i get
json
andmeta
(or sometimes justjson
) like thisis there a way to get just the value inside
json
as a string? something likewhat i'm currently doing is using regex to remove
json
(key) andmeta
completely (if it exists)