On Thursday, September 29, 2016 at 11:55:25 PM UTC+1, Francesco Orsenigo 
wrote:
>
>
> This should make things easier: https://github.com/eeue56/json-to-elm
>

That definitely helped to get me started. It does not cover all the use 
cases I described previously though - and I think those use cases are 
fairly common.

If there was a built in conversion, I would like to see it able to handle 
any json that can be described by json-schema with some extra flags to 
allow leniency around quotes and missing and extra fields and so on. 
Otherwise the built in conversion would be too restrictive to be useful.

Extra fields are another use case I did not mention before: I guess you 
just put a Dict in your record and any fields not explicitly named as 
record fields get put in there.

Also a standard conversion between json and nested Dicts would be useful, 
its essentially working with the json as untyped data. (Would need to 
handle unquoted numbers as strings).

A tool that would really help me right now would be a json-schema-to-elm 
converter.

-- 
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