users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] simple value supported?

From: Romain Manni-Bucau <rmannibucau_at_tomitribe.com>
Date: Mon, 7 Dec 2015 19:02:45 +0100

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