Hello, I finished a basic key-value finding algorithm for json in Java. However, now that i can retrieve value strings with keys and nested keys, i would like to represent everything as objects in java. Kinda like nodes branching from the top layer of json to the inner layers. I have been thinking about how to structure this but I am not sure, I tried to make some JsonObject and JsonList classes to hold keys and values but i couldn't quite get everything to connect properly. And ideas? Thanks!
#Structuring Json as a Java Object
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Here is my JsonParser class, JsonObject and JsonList are not defined as that is what I am trying to figure out, how i would make a json class structure to represent the data
I uploaded your attachments as gist. That way, they are easier to read for everyone, especially mobile users 👍
for context i am doing this for a programming comp where we cant use external libraries, thus why i am not using jackson or something like that