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
At the moment, there is practically no documentation on advanced usage of Poison.decode with the as option for decoding JSON to deeply nested structures with arrays of objects.
This needs at least one advanced example (either in the README or API docs).
The text was updated successfully, but these errors were encountered:
deffrom_json(json)whenis_binary(json),do: json|>Poison.decode!(%{as: model_structure(),keys: :atoms})defpmodel_structuredo%Model1{model2: %Model2{model3: %Model3{}}}end```
It would be cool if it could decode a model based on a typespec.
At the moment, there is practically no documentation on advanced usage of
Poison.decode
with theas
option for decoding JSON to deeply nested structures with arrays of objects.This needs at least one advanced example (either in the README or API docs).
The text was updated successfully, but these errors were encountered: