code: public Object convertToJson(Object pValue, List<String> pPathParts, JsonConvertOptions pOptions)
              throws AttributeNotFoundException {
          Stack<String> extraStack = pPathParts != null ? EscapeUtil.reversePath(pPathParts) : new Stack<String>();
          return extractObjectWithContext(pValue, extraStack, pOptions, true);
      }
docs: Convert the return value to a JSON object.
  
  
  
  @param pValue the value to convert
  @param pPathParts path parts to use for extraction
  @param pOptions options used for parsing
  @return the converter object. This either a subclass of {@link org.json.simple.JSONAware} or a basic data type like String or Long.
  @throws AttributeNotFoundException if within an path an attribute could not be found