-
Notifications
You must be signed in to change notification settings - Fork 27
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
can't decode a charlist #23
Comments
Good catch. I'll toss an |
You didn't push a new version, did you? |
I didn't cut a release to publish on Hex, no. I've been away for a few days and didn't want to release a new version for a small untested feature since I wouldn't be able to respond to any bugs it might cause. Have you tried it out yet? Is it solving your problem and not causing any issues? I'll be happy to cut an official release if it seems to be working fine. |
Probably only I believe a simple test in the terminal demonstrates it works Mix.install([:jsonrs]);
{:ok, {{_, 200, _}, _, body}} = :httpc.request(:get, {~c"https://jsonplaceholder.typicode.com/posts", []},[], []);
to_string(body) |> Jsonrs.decode! I only used |
I receive a payload as a charlist from
:httpc
, so I need to convert it into a string toJsonrs.decode!
it. The libraryJason
can do it without the string conversion. Is it worth using Jsonrs when I have this kind of conversion to do?The text was updated successfully, but these errors were encountered: