### Question:
DynaFormUtils { public static String fieldValuestoJson( Map<String, Object> valueMap){ Gson gson = new Gson(); Type type = new TypeToken<Map<String,Object>>(){}.getType(); return gson.toJson(valueMap, type); }  static String fieldValuestoJson( Map<String, Object> valueMap); static Map<String, Object> fieldValuesfromJson( String json, DynaForm form ); static Map<String, Object> fieldValuesfromJson( String json, Map<String,DynaField> fieldMap ); static Map<String,DynaField> resolveFieldMap( DynaForm form ); static String calcValuesToJson( Map<String, DynaCalcFieldValue> valueMap); static Map<String, DynaCalcFieldValue> calcValuesFromJson(  String json );  }### Answer:
@Test public void testToJson() { System.out.println("toJson"); Map<String, Object> valueMap = new HashMap<>(); valueMap.put("test:1:1", "Deneme"); valueMap.put("test:1:2", 5); valueMap.put("test:1:3", new Date()); valueMap.put("test:1:4", 11l); valueMap.put("test:1:5", BigDecimal.TEN); valueMap.put("test:1:6", Boolean.TRUE); valueMap.put("test:1:7", 3.2d); String expResult = ""; String result = DynaFormUtils.fieldValuestoJson(valueMap); System.out.println(result); }