Object is JSON, and JSON is converted to object

jobNumberRule.setEntity ( JSON.toJSONString ( this.jobNumberRule ));
JSON.parseObject ( jobRule.getEntity (), JobNumberRule.class );


Read More: