@Test public void testToFacetValue() { JsonElementConverter converter = new JsonElementConverter(); assertNull(converter.toFacetValue(null)); assertEquals(JsonNull.INSTANCE, converter.toFacetValue("null")); assertEquals(new JsonPrimitive("foo"), converter.toFacetValue("\"foo\"")); assertEquals(new JsonPrimitive(1), converter.toFacetValue("1")); assertEquals(new JsonPrimitive(false), converter.toFacetValue("false")); assertEquals(array, converter.toFacetValue(array.toString())); assertEquals(object, converter.toFacetValue(object.toString())); }
@Override public Object toFacetValue(Object o) { if (o == null) { return null; } return new JsonParser().parse(o.toString()); }
JsonElementConverter implements Converter { @Override public Object toFacetValue(Object o) { if (o == null) { return null; } return new JsonParser().parse(o.toString()); } }
JsonElementConverter implements Converter { @Override public Object toFacetValue(Object o) { if (o == null) { return null; } return new JsonParser().parse(o.toString()); }  }
JsonElementConverter implements Converter { @Override public Object toFacetValue(Object o) { if (o == null) { return null; } return new JsonParser().parse(o.toString()); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object o); @Override Object toFacetValue(Object o); }
JsonElementConverter implements Converter { @Override public Object toFacetValue(Object o) { if (o == null) { return null; } return new JsonParser().parse(o.toString()); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object o); @Override Object toFacetValue(Object o);  }