Hi guys,
didn't find in the archive if we discussed if we should support simple values.
Here few samples:
assertEquals("\"strValue\"", JSONB.toJson(Optional.of("strValue")));
assertEquals("null", JSONB.toJson(Optional.ofNullable(null)));
assertEquals("null", JSONB.toJson(Optional.empty()));
assertEquals("1", JSONB.toJson("1"));
I think not JsonObject and JsonArray values shouldn't be supported but
I know several mapper can support it.
If it has been discussed happy to catch up with an archive link, if
not what do you think?
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau