You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON itself has no notion of a binary, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains a Base64 encoded binary, which it decodes if found and returns.
public JsonObject put(String key, byte[] value)
Put a byte[] into the JSON object with the specified key.
JSON extension RFC7493, binary will first be Base64 encoded before being put as a String.
public java.time.Instant getInstant(String key)
Get the instant value with the specified key.
JSON itself has no notion of a date, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains a ISODATE encoded date, which it decodes if found and returns.
Hello,
please add new methods to JSONObject class. I think the can be very useful.
byte[] getBinary(String key) / byte[] getBinary(String key, byte[] def)
JSON itself has no notion of a binary, this extension complies to the
RFC-7493, so this method assumes there is a String value with the key and
it contains a Base64 encoded binary, which it decodes if found and returns.
public JsonObject put(String key, byte[] value)
Put a byte[] into the JSON object with the specified key.
JSON extension RFC7493, binary will first be Base64 encoded before being
put as a String.
public java.time.Instant getInstant(String key)
Get the instant value with the specified key.
JSON itself has no notion of a date, this extension complies to the
RFC-7493, so this method assumes there is a String value with the key and
it contains a ISODATE encoded date, which it decodes if found and returns.
Not adding support for date or time transforms at this time. No objection if someone sees a need for Base64 and wants to try implementing it in a way that does not impact existing applications.
Activity
johnjaylward commentedon Oct 19, 2016
We don't currently support java8, so I don't see the Instant items being
implemented.
On Oct 19, 2016 18:03, "Krešimir Popović" [email protected] wrote:
kpopovic commentedon Oct 19, 2016
Java 8 was released on 18 March 2014, more then 2 years ago...
Do you plan to support Java 8 at all ?
johnjaylward commentedon Oct 19, 2016
We are currently supporting java6 and up, but that means no java8 specific
features
On Oct 19, 2016 6:17 PM, "Krešimir Popović" [email protected]
wrote:
kpopovic commentedon Oct 19, 2016
Ok, I understand.
stleary commentedon Oct 20, 2016
Not adding support for date or time transforms at this time. No objection if someone sees a need for Base64 and wants to try implementing it in a way that does not impact existing applications.