code: public static JSONArtifact parse(String str, boolean order) throws IOException, NullPointerException {
          if (str != null) {
              return parse(new StringReader(str), order);
          } else {
              throw new NullPointerException("str cannot be null");
          }
      }
docs: Parse a string of JSON text into a JSONArtifact.
  @param str The String to read from.
  @param order Boolean flag indicating if the order of the JSON data should be preserved.  This parameter only has an effect if the stream is JSON Object { ... } formatted data.
  
  @return Returns an instance of JSONArtifact (JSONObject or JSONArray), corrisponding to if the input stream was Object or Array notation.
  
  @throws IOException Thrown on IO errors during parse.
  @throws NullPointerException Thrown if str is null