change json into object code example
Example 1: object json parse javascript
var objJson1 = JSON.parse(JSON.stringify(objNotJson1));
Example 2: convert json to object
Jackson Data-bind depdendency that take care of
Converting between
JSON to Java Object
and
Java Object to JSON
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.0</version>
</dependency>