Package org.h2.util.json
Class JSONBytesSource
java.lang.Object
org.h2.util.json.JSONTextSource
org.h2.util.json.JSONBytesSource
JSON byte array source.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]normalize(byte[] bytes) Converts bytes into normalized JSON representation.static <R> Rparse(byte[] bytes, JSONTarget<R> target) Parses source bytes to a specified target.toString()
-
Method Details
-
parse
Parses source bytes to a specified target.- Type Parameters:
R- the type of the result- Parameters:
bytes- sourcetarget- target- Returns:
- the result of the target
-
normalize
public static byte[] normalize(byte[] bytes) Converts bytes into normalized JSON representation.- Parameters:
bytes- source representation- Returns:
- normalized representation
-
toString
-