Package org.nutz.json.meta

Examples of org.nutz.json.meta.JC


    assertEquals("{\"charX\":\"c\"}", Json.toJson(map, JsonFormat.compact()));
  }
 
  @Test //For issue 474
  public void test_inner_class() {
    JC c = new JC();
    String str = Json.toJson(c);
    Map<String, Map<String,Object>> map = (Map<String, Map<String, Object>>) Json.fromJson(str);
    assertEquals(1, map.get("ixx").get("abc"));
  }
View Full Code Here


    }

    @Test
    // For issue 474
    public void test_inner_class() {
        JC c = new JC();
        String str = Json.toJson(c);
        Map<String, Map<String, Object>> map = (Map<String, Map<String, Object>>) Json.fromJson(str);
        assertEquals(1, map.get("ixx").get("abc"));
    }
View Full Code Here

    }

    @Test
    // For issue 474
    public void test_inner_class() {
        JC c = new JC();
        String str = Json.toJson(c);
        Map<String, Map<String, Object>> map = (Map<String, Map<String, Object>>) Json.fromJson(str);
        assertEquals(1, map.get("ixx").get("abc"));
    }
View Full Code Here

TOP

Related Classes of org.nutz.json.meta.JC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.