Does jsoniter-scala have an equivalent to jsoniter's `Any`?

122 Views Asked by At

Does jsoniter-scala have an equivalent to (Java) jsoniter's Any? I'm talking about the facility described here. There is no Any in jsoniter-scala, and I can't find an equivalent in the jsoniter-scala docs, though obviously I may have missed it.

I've tried writing my own custom type and codecs, but it's become a bit of a rabbit hole for me. Even if I get it working and write all the new tests, I won't get the efficiency (e.g., lazy evaluation) of something authored by someone who knows the library on more than just a cursory level (like me).

For reference, I am trying to intake and then later output schemaless JSON, perhaps with some checks for field values, if present.

Note that I am already familiar with this answer, but it deals with Map[String, String] and not Map[String, Any], which is what I really need, in a production quality form.

0

There are 0 best solutions below