Hi!, im trying to read JSON that i stored using
DataContainer container = DataContainer.createNew()
.set(DataQuery.of(“Location”), location)
.set(DataQuery.of(“count”), dataCount);
DataFormats.JSON.writeTo(fileStream, container);
But when i try to read that i can only read the count
but Location no return an Object with
Optional optLocation = container.getObject(DataQuery.of(“Location”), Location.class);
But in the json file the data exists without problem.
“Location”:{“ContentVersion”:1,“WorldName”:“world”,“WorldUuid”:“7659ae1a-22a9-4a32-bf8a-298a43b410e2”,“BlockType”:“minecraft:chest”,“X”:-46.05715257516578,“Y”:74.0,“Z”:221.91953494386158}
Anyone know how can i read that Location?