@Test
    public void testEnum(){
        JobRunResult result = new JobRunResult();
        result.setAction(Action.EXECUTE_EXCEPTION);
        result.setMsg("fxxdfdasaf");

        String json = new JSONObject(result).toString();
        System.out.println(json);

        JobRunResult result2 = JSONObject.parseObject(json, new TypeReference<JobRunResult>() {
        }.getType());
        System.out.println(result2);
    }
@author Robert HG (254963746@qq.com) on 12/29/15.
lts-core/src/test/java/com/github/ltsopensource/json/JSONTest.java