code: public static JSONValue parse(CharSequence cs) {
          ParseText p = new ParseText(cs);
          JSONValue result = parse(p);
          if (!p.skipSpaces().isExhausted())
              throw new JSONException(EXCESS_CHARS);
          return result;
      }
docs: Parse a {@link CharSequence} (e.g. a {@link String}) as a JSON value.
  
  @param   cs      the {@link CharSequence}
  @return          the JSON value
  @throws  JSONException if the sequence does not contain a valid JSON value