Java to JSON Converter

I want to generate JSON from Java POJO class. Online tools are available for converting from JSON to Java, for example, below -

http://pojo.sodhanalibrary.com/

http://www.jsonschema2pojo.org/

Do we have a java tool for json? Example below -

Example -

class Example { private String value1 private String value2; public String getValue1(){ return value1; } public void setValue2(String value2){ this.value2=value2; } public String getValue2(){ return value2; } public void setValue2(String value2){ this.value2=value2; } 

}

in

 { "value1":"one", "value2":"two" } 
+4
source share
3 answers

Have you tried JSONizer Eclipse Plugin:

https://marketplace.eclipse.org/content/jsonizer

Rgds sbobde

+2
source

All Articles