Java JSONObject converts map elements to typeId and empty
I am making a Spigot plugin where I need to store the player’s items in a json file. However, the resulting json file shows "tags":{"isWand":{"typeId":3,"empty":false}.....
in the NBT tags part. JSONObject only took the type of the element and whether it is empty or not instead of the actual value of the element.