simdjson-java
simdjson-java copied to clipboard
How to convert JsonValue to String
trafficstars
For DOM parser, how to convert JsonValue to byte array or string? For example:
byte[] json = toUtf8("{\"a\": {\"b\": \"c\"}}");
JsonValue jsonValue = parser.parse(json, json.length);
JsonValue res = jsonValue.get("a");
I want to get the string {"b": "c"}. Thank you in advance for your help with this question.