I have a JSON string which needs to be process. I wanted to know whether there exists any predefined method or do I need to do it manually?
Intial String : {“organisation_name” : “GeeksforGeeks”, “description” : “A computer Science portal for Geeks”, “Employee” : “2000”}
Processed String : { \”organisation_name\” : \”GeeksforGeeks\”, \”description\” : \”A computer Science portal for Geeks\”, \”Employee\” : \”2000\” }
what do you mean about process? if you want to use it as a class and check the fields you can use ExClass exClass = objectMapper.readValue(json, ExClass .class); to convert your JSON to a class then work with that class.