Below is an example of the original JSON to JAVA and the result.
Original JSON to JAVA Example{ "header": "rum.table.column.txnname", "width": "70%", "dataElement": "yttags", "isPresent": true, "day": 90, "results": { "totalCT": 389, "name": "/api/yttags_monitor/*", "avgRT": 567.89, "throughput": 9.00, "totalRT": 230345 } }
And an example of how the online JSON to JAVA works.
JSON to JAVA Resultpublic class Application { private String header; private String width; private String dataElement; private boolean isPresent; private float day; Results ResultsObject; // Getter Methods public String getHeader() { return header; } public String getWidth() { return width; } public String getDataElement() { return dataElement; } public boolean getIsPresent() { return isPresent; } public float getDay() { return day; } public Results getResults() { return ResultsObject; } // Setter Methods public void setHeader( String header ) { this.header = header; } public void setWidth( String width ) { this.width = width; } public void setDataElement( String dataElement ) { this.dataElement = dataElement; } public void setIsPresent( boolean isPresent ) { this.isPresent = isPresent; } public void setDay( float day ) { this.day = day; } public void setResults( Results resultsObject ) { this.ResultsObject = resultsObject; } } public class Results { private float totalCT; private String name; private float avgRT; private float throughput; private float totalRT; // Getter Methods public float getTotalCT() { return totalCT; } public String getName() { return name; } public float getAvgRT() { return avgRT; } public float getThroughput() { return throughput; } public float getTotalRT() { return totalRT; } // Setter Methods public void setTotalCT( float totalCT ) { this.totalCT = totalCT; } public void setName( String name ) { this.name = name; } public void setAvgRT( float avgRT ) { this.avgRT = avgRT; } public void setThroughput( float throughput ) { this.throughput = throughput; } public void setTotalRT( float totalRT ) { this.totalRT = totalRT; } }