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.
            Asked
            
        
        
            Active
            
        
            Viewed 111 times
        
    0
            
            
        - 
                    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 Answers
0
            
            
        You can use JSONObject from org.json library .
 
    
    
        Yassine Ballouti
        
- 1
- 2
- 
                    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
