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
jackson-databind writes byte[] as base64 and supports reading from base64 or array. Serde 2 writes byte[] as array, but does not support reading from base64, so prior to this change we are only compatible with jackson in one direction (serde encoder -> jackson decoder).
This patch adds decode support for base64, and for the bson binary type. For oracle jdbc json, a decodeBinary method already exists.
On the encode side, there is now a config flag to use format-specific byte array encoding, which is base64 for json. The default remains to write an array of numbers.
Fixes#520
jackson-databind writes byte[] as base64 and supports reading from base64 or array. Serde 2 writes byte[] as array, but does not support reading from base64, so prior to this change we are only compatible with jackson in one direction (serde encoder -> jackson decoder).
This patch adds decode support for base64, and for the bson binary type. For oracle jdbc json, a decodeBinary method already exists.
On the encode side, there is now a config flag to use format-specific byte array encoding, which is base64 for json. The default remains to write an array of numbers.
Fixes#520
* Support decoding base64 to byte[]
jackson-databind writes byte[] as base64 and supports reading from base64 or array. Serde 2 writes byte[] as array, but does not support reading from base64, so prior to this change we are only compatible with jackson in one direction (serde encoder -> jackson decoder).
This patch adds decode support for base64, and for the bson binary type. For oracle jdbc json, a decodeBinary method already exists.
On the encode side, there is now a config flag to use format-specific byte array encoding, which is base64 for json. The default remains to write an array of numbers.
Fixes#520
* address review
* rename config
Micronaut Serialization fails when trying to deserialize a String that is Base 64-encoded into a
byte[]
, such as:eyJzaXplIjoxMDAwLCJlbmNyeXB0ZWQiOmZhbHNlLCJ3b3JrZmxvd0lkIjoxfQ==
which decodes as{"size":1000,"encrypted":false,"workflowId":1}
The text was updated successfully, but these errors were encountered: