@Test public void testWritePropertyWithMapProperty() throws IOException { ComplexType type = new ComplexTypeImpl(SCHEMA, SCHEMA_NAME, "complex"); type.addField("key1", StringType.INSTANCE, null, 0, null); type.addField("key2", StringType.INSTANCE, null, 0, null); Map<String, String> values = new HashMap<>(); values.put("key1", "value1"); values.put("key2", "value2"); testWriteProperty(JSONPropertyWriter.create(), type, values, "{\"property\":{\"key1\":\"value1\",\"key2\":\"value2\"}}"); }
public static JSONPropertyWriter create() { return new JSONPropertyWriter(); }
JSONPropertyWriter { public static JSONPropertyWriter create() { return new JSONPropertyWriter(); } }
JSONPropertyWriter { public static JSONPropertyWriter create() { return new JSONPropertyWriter(); } protected  JSONPropertyWriter(); protected  JSONPropertyWriter(JSONPropertyWriter writer); }
JSONPropertyWriter { public static JSONPropertyWriter create() { return new JSONPropertyWriter(); } protected  JSONPropertyWriter(); protected  JSONPropertyWriter(JSONPropertyWriter writer); static JSONPropertyWriter create(); JSONPropertyWriter dateTimeFormat(DateTimeFormat dateTimeFormat); JSONPropertyWriter filesBaseUrl(String filesBaseUrl); JSONPropertyWriter prefix(String prefix); JSONPropertyWriter writeNull(boolean writeNull); JSONPropertyWriter writeEmpty(boolean writeEmpty); void writeProperty(JsonGenerator jg, Property prop); static void writePropertyValue(JsonGenerator jg, Property prop, DateTimeFormat dateTimeFormat,
            String filesBaseUrl); }
JSONPropertyWriter { public static JSONPropertyWriter create() { return new JSONPropertyWriter(); } protected  JSONPropertyWriter(); protected  JSONPropertyWriter(JSONPropertyWriter writer); static JSONPropertyWriter create(); JSONPropertyWriter dateTimeFormat(DateTimeFormat dateTimeFormat); JSONPropertyWriter filesBaseUrl(String filesBaseUrl); JSONPropertyWriter prefix(String prefix); JSONPropertyWriter writeNull(boolean writeNull); JSONPropertyWriter writeEmpty(boolean writeEmpty); void writeProperty(JsonGenerator jg, Property prop); static void writePropertyValue(JsonGenerator jg, Property prop, DateTimeFormat dateTimeFormat,
            String filesBaseUrl);  }