test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/json/JsonUtilsTest.java
test_class.identifier: JsonUtilsTest
test_case.body: @UseDataProvider("createJsonStringData")
      @Test
      public void createsJsonString(String sourceString, String expectedJsonString) {
          assertEquals(expectedJsonString, JsonUtils.getJsonString(sourceString));
      }
test_case.class_method_signature: JsonUtilsTest.createsJsonString(String sourceString, String expectedJsonString)
test_case.full_signature: @UseDataProvider("createJsonStringData") @Test public void createsJsonString(String sourceString, String expectedJsonString)
test_case.identifier: createsJsonString
test_case.invocations: assertEquals getJsonString
test_case.modifiers: @UseDataProvider("createJsonStringData") @Test public
test_case.parameters: (String sourceString, String expectedJsonString)
test_case.return: void
test_case.signature: void createsJsonString(String sourceString, String expectedJsonString)
focal_class.declarator: KNOWN_TYPES = new HashMap<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Types> KNOWN_TYPES = new HashMap<>();
focal_class.type: Map<String, Types>
focal_class.var_name: KNOWN_TYPES
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/json/JsonUtils.java
focal_class.identifier: JsonUtils
focal_class.class_method_signature: JsonUtils.getJsonString(String string)
focal_class.full_signature: public static String getJsonString(String string)
focal_class.identifier: getJsonString
focal_class.modifiers: public static
focal_class.parameters: (String string)
focal_class.return: String
focal_class.signature: String getJsonString(String string)
focal_class.class_method_signature: JsonUtils.isKnownType(Class<?> clazz)
focal_class.full_signature: public static boolean isKnownType(Class<?> clazz)
focal_class.identifier: isKnownType
focal_class.modifiers: public static
focal_class.parameters: (Class<?> clazz)
focal_class.return: boolean
focal_class.signature: boolean isKnownType(Class<?> clazz)
focal_class.class_method_signature: JsonUtils.getType(Object o)
focal_class.full_signature: public static Types getType(Object o)
focal_class.identifier: getType
focal_class.modifiers: public static
focal_class.parameters: (Object o)
focal_class.return: Types
focal_class.signature: Types getType(Object o)
focal_class.class_method_signature: JsonUtils.getType(Class<?> clazz)
focal_class.full_signature: public static Types getType(Class<?> clazz)
focal_class.identifier: getType
focal_class.modifiers: public static
focal_class.parameters: (Class<?> clazz)
focal_class.return: Types
focal_class.signature: Types getType(Class<?> clazz)
focal_class.class_method_signature: JsonUtils.getTransientFields(Class<?> aClass)
focal_class.full_signature: public static Set<String> getTransientFields(Class<?> aClass)
focal_class.identifier: getTransientFields
focal_class.modifiers: public static
focal_class.parameters: (Class<?> aClass)
focal_class.return: Set<String>
focal_class.signature: Set<String> getTransientFields(Class<?> aClass)
focal_class.class_method_signature: JsonUtils.createProxy(Class<T> anInterface)
focal_class.full_signature: @SuppressWarnings({"unchecked"}) public static T createProxy(Class<T> anInterface)
focal_class.identifier: createProxy
focal_class.modifiers: @SuppressWarnings({"unchecked"}) public static
focal_class.parameters: (Class<T> anInterface)
focal_class.return: T
focal_class.signature: T createProxy(Class<T> anInterface)
focal_class.class_method_signature: JsonUtils.getFieldName(Method method)
focal_class.full_signature: static String getFieldName(Method method)
focal_class.identifier: getFieldName
focal_class.modifiers: static
focal_class.parameters: (Method method)
focal_class.return: String
focal_class.signature: String getFieldName(Method method)
focal_class.class_method_signature: JsonUtils.JsonUtils()
focal_class.full_signature: private  JsonUtils()
focal_class.identifier: JsonUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JsonUtils()
focal_method.body: public static String getJsonString(String string) {
          if (string == null || string.length() == 0) {
              return "\"\"";
          }
          StringBuilder jsonString = new StringBuilder();
          jsonString.append("\"");
          char[] charArray = string.toCharArray();
          for (char c : charArray) {
              switch (c) {
                  case '\n':
                      jsonString.append("\\n");
                      break;
                  case '\r':
                      jsonString.append("\\r");
                      break;
                  case '\t':
                      jsonString.append("\\t");
                      break;
                  case '\b':
                      jsonString.append("\\b");
                      break;
                  case '\f':
                      jsonString.append("\\f");
                      break;
                  case '\\':
                      jsonString.append("\\\\");
                      break;
                  case '"':
                      jsonString.append("\\\"");
                      break;
                  default:
                      if (c < '\u0010') {
                          jsonString.append("\\u000").append(Integer.toHexString(c));
                      } else if ((c < '\u0020' && c > '\u0009') || (c >= '\u0080' && c < '\u00a0')) {
                          jsonString.append("\\u00").append(Integer.toHexString(c));
                      } else if (c >= '\u2000' && c < '\u2100') {
                          jsonString.append("\\u").append(Integer.toHexString(c));
                      } else {
                          jsonString.append(c);
                      }
                      break;
              }
          }
          jsonString.append("\"");
          return jsonString.toString();
      }
focal_method.class_method_signature: JsonUtils.getJsonString(String string)
focal_method.full_signature: public static String getJsonString(String string)
focal_method.identifier: getJsonString
focal_method.invocations: length append toCharArray append append append append append append append append append toHexString append append toHexString append append toHexString append append toString
focal_method.modifiers: public static
focal_method.parameters: (String string)
focal_method.return: String
focal_method.signature: String getJsonString(String string)