# Class JSONParser.RawJson

java.lang.Object
com.codename1.io.JSONParser.RawJson

Enclosing class:
  `JSONParser`

public static final class JSONParser.RawJson extends java.lang.Object

Wrapper that lets a caller embed a pre-built JSON fragment into a Map/List tree being serialized by `JSONParser.toJson(Object)`. The fragment is inlined verbatim rather than escaped as a string literal. Useful when a value (such as a JSON-Schema for a tool parameter) is already in canonical JSON form.

    Map<String, Object> root = new HashMap<String, Object>();
    root.put("parameters", JSONParser.rawJson(schema));
    String body = JSONParser.toJson(root);

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getJson()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getJson

    public String getJson()