-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an implementation for JSValueEncoder
#116
Comments
What all would this entail? I assume an inverse of the decoding method? |
Yes, I would assume so, but it may need some investigation to confirm this. |
Ive discovered a bug it seems that might relate to this issue. working with Request and Fetch apis. I tested this by setting body to a JSValue(stringLiteral: ) of the exact json body I wanted. So if it cant send the body I tell it to, Encoding won't matter cuz it will just encode the literal string "[object Object]" |
@kateinoigakukun @j-f1 FYI I have created an implemention of JSValueEncoder. I can make a PR soon – just testing it some more first with some more use-cases. |
Do I understand correctly that there's no easy way right now to convert an arbitrary
Encodable
type toJSValue
? We already haveJSValueDecoder
, but apparently lack the opposite forEncodable
...The text was updated successfully, but these errors were encountered: