@Test
public void testStringToJSONValue() {

    assertEquals("\"\\\"quoted\\\"\"", Span.stringToJSONValue("\"quoted\""));
    assertEquals("\"\\\\back-slashed\\\\\"", Span.stringToJSONValue("\\back-slashed\\"));
    assertEquals("\"\\/fwd-slashed\\/\"", Span.stringToJSONValue("/fwd-slashed/"));
    assertEquals("\"\\ttabbed\"", Span.stringToJSONValue("\ttabbed"));
    assertEquals("\"\\bbackspace\"", Span.stringToJSONValue("\bbackspace"));
    assertEquals("\"\\nnewline\"", Span.stringToJSONValue("\nnewline"));
    assertEquals("\"\\rreturn\"", Span.stringToJSONValue("\rreturn"));
    assertEquals("\"\\ffeed\"", Span.stringToJSONValue("\ffeed"));
}