Max & Frederick, thanks for your input. 

I don't have a lot of experience with JSON-decoding in Elm yet, so I'll do 
some more research. Your gist looks really helpful, Frederick.

Hans.

On Wednesday, December 7, 2016 at 4:27:23 PM UTC+1, Frederick Yankowski 
wrote:
>
> I wanted to decode fairly general JSON (JSON Schema embedded in an ad-hoc 
> structure) and found that fairly easy to do, generating an ADT value that 
> matches the structure of the JSON one-to-one.
>
>
> https://github.com/fredcy/tezos-client/blob/37615ef93bb90b38afd58f282610a4011427c933/Schema.elm#L38
>
> (My data includes extra Visibility values used in displaying 
> collapsed/expanded forms of the data.)
> ​
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to