Explore if it is possible to not alias obj on Fable version
MangelMaxime opened this issue · comments
Currently, the encoder API requires the user to do some manual work like apply decoder using List.map
before calling Encode.list
let l = [ "a"; "b"; "c" ]
let json =
l
|> List.map Encode.string
|> Encode.list
|> Encode.toString 4
In the decoder we do the mapping for the user Encoder API should be more similar to Decoder API.