This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Update the JSON codecs to be able to encode/decode any EJSON values #19
Open
Description
Currently we have silly things like arbitraryJsonEncodableEJsonOfSize
, which just wasted about half an hour of @kritzcreek's and my time. 😢
@wemrysi this is relevant to our discussion about SST EJSON encoding the other day - I'm not sure at the moment what the encoding of non-string-key maps is supposed to look like. I asked @jdegoes about it in #general a while back, and I think the idea was the encoding would be something like { $map: [{ $key: ..., $value: ... }] }
, but I don't know if that is already the case or if it was a proposal for how it should be done. Can you take a look and let us know so we can update this accordingly? I tried to find it myself but was a bit lost. 😄