Convert json to java code and vice versa.