@Test public void testMultimapWithLinkObjectToJson() { Multimap<String, Object> data = HashMultimap.create(); data.put("foo", Link.to(1)); String json = Convert.mapToJson(data); Assert.assertEquals("{\"foo\":\"@1\"}", json); }
public static String mapToJson(Map<String, ?> map) { return DataServices.gson().toJson(map); }
Convert { public static String mapToJson(Map<String, ?> map) { return DataServices.gson().toJson(map); } }
Convert { public static String mapToJson(Map<String, ?> map) { return DataServices.gson().toJson(map); } private  Convert(); }
Convert { public static String mapToJson(Map<String, ?> map) { return DataServices.gson().toJson(map); } private  Convert(); static List<Multimap<String, Object>> anyJsonToJava(String json); static TObject javaToThrift(Object object); static Multimap<String, Object> jsonToJava(String json); @SuppressWarnings("unchecked") static String mapsToJson(Collection<Multimap<String, Object>> list); static String mapToJson(Map<String, ?> map); static String mapToJson(Multimap<String, Object> map); static String operatorToString(Operator operator); @SuppressWarnings("unchecked") static T possibleThriftToJava(Object tobject); static Object stringToJava(String value); static Operator stringToOperator(String symbol); static String stringToResolvableLinkInstruction(String ccl); @Deprecated static String stringToResolvableLinkSpecification(String key,
            String rawValue); static Object thriftToJava(TObject object); static Object toFunctionOrUnescapedValueIfPossible(Object value); }
Convert { public static String mapToJson(Map<String, ?> map) { return DataServices.gson().toJson(map); } private  Convert(); static List<Multimap<String, Object>> anyJsonToJava(String json); static TObject javaToThrift(Object object); static Multimap<String, Object> jsonToJava(String json); @SuppressWarnings("unchecked") static String mapsToJson(Collection<Multimap<String, Object>> list); static String mapToJson(Map<String, ?> map); static String mapToJson(Multimap<String, Object> map); static String operatorToString(Operator operator); @SuppressWarnings("unchecked") static T possibleThriftToJava(Object tobject); static Object stringToJava(String value); static Operator stringToOperator(String symbol); static String stringToResolvableLinkInstruction(String ccl); @Deprecated static String stringToResolvableLinkSpecification(String key,
            String rawValue); static Object thriftToJava(TObject object); static Object toFunctionOrUnescapedValueIfPossible(Object value);  }