You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
nooblyf
changed the title
Is there a way to get just the string value inside json?
Is there a way to get just the string value inside json using stringify?
Aug 5, 2023
nooblyf
changed the title
Is there a way to get just the string value inside json using stringify?
Is there a way to get just the string value inside json when doing stringify?
Aug 5, 2023
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.
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)The text was updated successfully, but these errors were encountered: