test_class.declarator: raw = new String[] { "hallo", "is 1<2 ?", "or 4>5 ?", "or 1<>2 ?", "\"hi\" 'there'" }
test_class.modifier: private static
test_class.original_string: private static String[] raw = new String[] { "hallo", "is 1<2 ?", "or 4>5 ?", "or 1<>2 ?", "\"hi\" 'there'" };
test_class.type: String[]
test_class.var_name: raw
test_class.declarator: xml = new String[] { "hallo", "is 1&lt;2 ?", "or 4&gt;5 ?", "or 1&lt;&gt;2 ?", "&quot;hi&quot; &apos;there&apos;" }
test_class.modifier: private static
test_class.original_string: private static String[] xml = new String[] { "hallo", "is 1&lt;2 ?", "or 4&gt;5 ?", "or 1&lt;&gt;2 ?", "&quot;hi&quot; &apos;there&apos;" };
test_class.type: String[]
test_class.var_name: xml
test_class.declarator: jsn = new String[] { "hallo", "is 1<2 ?", "or 4>5 ?", "or 1<>2 ?", "\\\"hi\\\" \\'there\\'" }
test_class.modifier: private static
test_class.original_string: private static String[] jsn = new String[] { "hallo", "is 1<2 ?", "or 4>5 ?", "or 1<>2 ?", "\\\"hi\\\" \\'there\\'" };
test_class.type: String[]
test_class.var_name: jsn
test_class.file: brouter-util/src/test/java/btools/util/StringUtilsTest.java
test_class.identifier: StringUtilsTest
test_case.body: @Test
    public void jsonEncodingTest()
    {
      for( int i=0; i<raw.length; i++ )
      {
        Assert.assertEquals( "json encoding mismatch for raw: " + raw[i], jsn[i], StringUtils.escapeJson( raw[i] ) );
      }
    }
test_case.class_method_signature: StringUtilsTest.jsonEncodingTest()
test_case.full_signature: @Test public void jsonEncodingTest()
test_case.identifier: jsonEncodingTest
test_case.invocations: assertEquals escapeJson
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void jsonEncodingTest()
focal_class.declarator: xmlChr = new char[]  { '&',     '<',    '>',    '\'',     '"',      '\t',    '\n',    '\r' }
focal_class.modifier: private static
focal_class.original_string: private static char[]   xmlChr = new char[]  { '&',     '<',    '>',    '\'',     '"',      '\t',    '\n',    '\r' };
focal_class.type: char[]
focal_class.var_name: xmlChr
focal_class.declarator: xmlEsc = new String[]{ "&amp;", "&lt;", "&gt;", "&apos;", "&quot;", "&#x9;", "&#xA;", "&#xD;" }
focal_class.modifier: private static
focal_class.original_string: private static String[] xmlEsc = new String[]{ "&amp;", "&lt;", "&gt;", "&apos;", "&quot;", "&#x9;", "&#xA;", "&#xD;" };
focal_class.type: String[]
focal_class.var_name: xmlEsc
focal_class.declarator: jsnChr = new char[]  { '\'',  '"',    '\\',   '/' }
focal_class.modifier: private static
focal_class.original_string: private static char[]   jsnChr = new char[]  { '\'',  '"',    '\\',   '/' };
focal_class.type: char[]
focal_class.var_name: jsnChr
focal_class.declarator: jsnEsc = new String[]{ "\\'", "\\\"", "\\\\", "\\/" }
focal_class.modifier: private static
focal_class.original_string: private static String[] jsnEsc = new String[]{ "\\'", "\\\"", "\\\\", "\\/" };
focal_class.type: String[]
focal_class.var_name: jsnEsc
focal_class.file: brouter-util/src/main/java/btools/util/StringUtils.java
focal_class.identifier: StringUtils
focal_class.class_method_signature: StringUtils.escapeJson( String s )
focal_class.full_signature: public static String escapeJson( String s )
focal_class.identifier: escapeJson
focal_class.modifiers: public static
focal_class.parameters: ( String s )
focal_class.return: String
focal_class.signature: String escapeJson( String s )
focal_class.class_method_signature: StringUtils.escapeXml10( String s )
focal_class.full_signature: public static String escapeXml10( String s )
focal_class.identifier: escapeXml10
focal_class.modifiers: public static
focal_class.parameters: ( String s )
focal_class.return: String
focal_class.signature: String escapeXml10( String s )
focal_class.class_method_signature: StringUtils.escape( String s, char[] chr, String[] esc )
focal_class.full_signature: private static String escape( String s, char[] chr, String[] esc )
focal_class.identifier: escape
focal_class.modifiers: private static
focal_class.parameters: ( String s, char[] chr, String[] esc )
focal_class.return: String
focal_class.signature: String escape( String s, char[] chr, String[] esc )
focal_method.body: public static String escapeJson( String s )
    {
      return escape( s, jsnChr, jsnEsc );
    }
focal_method.class_method_signature: StringUtils.escapeJson( String s )
focal_method.full_signature: public static String escapeJson( String s )
focal_method.identifier: escapeJson
focal_method.invocations: escape
focal_method.modifiers: public static
focal_method.parameters: ( String s )
focal_method.return: String
focal_method.signature: String escapeJson( String s )