simdjson-java icon indicating copy to clipboard operation
simdjson-java copied to clipboard

How to convert JsonValue to String

Open DenineLu opened this issue 1 year ago • 0 comments
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.

DenineLu avatar Jun 24 '24 04:06 DenineLu