Search in sources :

Example 1 with JSONWrappedObject

use of com.fasterxml.jackson.databind.util.JSONWrappedObject in project jackson-databind by FasterXML.

the class TestJSONP method testGeneralWrapping.

public void testGeneralWrapping() throws Exception {
    JSONWrappedObject input = new JSONWrappedObject("/*Foo*/", "\n// the end", Arrays.asList());
    assertEquals("/*Foo*/[]\n// the end", MAPPER.writeValueAsString(input));
}
Also used : JSONWrappedObject(com.fasterxml.jackson.databind.util.JSONWrappedObject)

Aggregations

JSONWrappedObject (com.fasterxml.jackson.databind.util.JSONWrappedObject)1