0

so I have, I doing a program that receives a string json with an unknown structure (since it's a variable each time I receive a new one) and it needs to parse the string to extract each key and its type (from its value). I need to do this using only java (no spring) because I've seen solution using Jackson tree, but with the software I'm using it impossible If someone could help I would appreciate it.

eya gue
  • 3
  • 1
  • 2
  • https://stackoverflow.com/a/53496485/13238310 – idanz May 30 '22 at 10:43
  • Does this answer your question? [JAVA - json parser - keys() to parse unknown json format?](https://stackoverflow.com/questions/53496322/java-json-parser-keys-to-parse-unknown-json-format) – George May 31 '22 at 17:35

1 Answers1

0

You can use JSONObject from org.json library .

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 30 '22 at 14:28