Closed digoburigo closed 10 months ago
Hey @digoburigo! You're holding it wrong. The typicode API doesn't return SuperJSON, but normal JSON. That's why SuperJSON will return undefined
.
What are you trying to achieve? If the goal is to parse the incoming JSON, use parseResponse: JSON.parse
instead.
Yes. I tried doing something that it's not possible. That is returning a superjson from a normal json response. That is not the purpose of this library. Sorry for the confusion.
I'm trying to use
superjson
with ofetch Is there something specific to make superjson work with this fetch alternative?Already open an issue in their repo.