JavaScript support
lpil opened this issue · comments
Louis Pilfold commented
- Use JS' built in JSON encoder/decoder.
Mark Sauer-Utley commented
Louis Pilfold commented
Wonderful. I couldn't see the failing test?
Mark Sauer-Utley commented
It might just be an environment issue on my end then. I was seeing these errors:
gleam_json_test.decode_bits_unexpected_format_test: Error:
Error(UnexpectedFormat([DecodeError(expected: "Int", found: "Tuple of 0 elements", path: [])]))
should equal
Error(UnexpectedFormat([DecodeError(expected: "Int", found: "List", path: [])]))
gleam_json_test.decode_unexpected_format_test: Error:
Error(UnexpectedFormat([DecodeError(expected: "Int", found: "Tuple of 0 elements", path: [])]))
should equal
Error(UnexpectedFormat([DecodeError(expected: "Int", found: "List", path: [])]))
When I went through those code paths, it seemed like something was going wrong in gleam/dynamic
, but I am super new to gleam so I could be way off.
Pascal Wengerter commented
@lpil can this be closed? v0.5.0
suggests so :)
Louis Pilfold commented
Oh yes! Thank you