I'm trying to figure out shortest and effective path to parse values from json and store some of them into chronicle map.
My current solution:
String data = ...;
ChronicleMap<CharSequence, Long> map = ...;
JSONWire wire = new JSONWire(Bytes.allocateElasticDirect(128));
wire.bytes().append(data);
long value = wire.read("fieldName").readLong();
map.put("key", value);
Can I escape somehow reading to long and save bytes to map, assuming that this is long?