> > This is part of why fromUntyped/toUntyped is uncomfortable - it's choosing > one particular encoding of JSON and making it central to the API. Is that > really the most important encoding? >
It's one opinionated kind, a simple bi-directional mapping (embedding-projection pair) based on what the json values contain. The implementations can be entirely written less than 100 lines of code using the public API (there are more lines for the documentation). Users can easily write their own and can serve as an example with a bit more exposition in the documentation. The methods could be removed and it would not affect anything else, so it's not fundamental nor central. Paul.