#Structuring Json as a Java Object

1 messages · Page 1 of 1 (latest)

bitter comet
#

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!

keen shaleBOT
#

<@&987246399047479336> please have a look, thanks.

keen shaleBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

bitter comet
#

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

keen shaleBOT
bitter comet
#

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