@Test public void testI18nToObject() { String key = "foo"; String i18n = TEST_VALUE_I18N; Map<String, Object> object = mapper.parseObject(TEST_JSON_I18N); assertEquals(i18n, object.get(key)); }
@Override public Map<String, Object> parseObject(String object) throws InteractiveSpacesException { try { @SuppressWarnings("unchecked") Map<String, Object> map = MAPPER.readValue(object, Map.class); return map; } catch (Throwable e) { throw new JsonInteractiveSpacesException("Could not parse JSON string", e); } }
StandardJsonMapper implements JsonMapper { @Override public Map<String, Object> parseObject(String object) throws InteractiveSpacesException { try { @SuppressWarnings("unchecked") Map<String, Object> map = MAPPER.readValue(object, Map.class); return map; } catch (Throwable e) { throw new JsonInteractiveSpacesException("Could not parse JSON string", e); } } }
StandardJsonMapper implements JsonMapper { @Override public Map<String, Object> parseObject(String object) throws InteractiveSpacesException { try { @SuppressWarnings("unchecked") Map<String, Object> map = MAPPER.readValue(object, Map.class); return map; } catch (Throwable e) { throw new JsonInteractiveSpacesException("Could not parse JSON string", e); } }  }
StandardJsonMapper implements JsonMapper { @Override public Map<String, Object> parseObject(String object) throws InteractiveSpacesException { try { @SuppressWarnings("unchecked") Map<String, Object> map = MAPPER.readValue(object, Map.class); return map; } catch (Throwable e) { throw new JsonInteractiveSpacesException("Could not parse JSON string", e); } }  @Override Map<String, Object> parseObject(String object); @Override String toString(Object data); }
StandardJsonMapper implements JsonMapper { @Override public Map<String, Object> parseObject(String object) throws InteractiveSpacesException { try { @SuppressWarnings("unchecked") Map<String, Object> map = MAPPER.readValue(object, Map.class); return map; } catch (Throwable e) { throw new JsonInteractiveSpacesException("Could not parse JSON string", e); } }  @Override Map<String, Object> parseObject(String object); @Override String toString(Object data); static final JsonMapper INSTANCE; }