public static JsonElement parse(String json) throws IOException {
    try {
      JsonReader jsonReader = new JsonReader(new StringReader(json));
      jsonReader.setLenient(false);
      return JSON_ELEMENT.read(jsonReader);
    } catch (NumberFormatException e) {
      throw new IOException(e);
    }
  }
Reads a {@link JsonElement} which cannot have any nested elements
java_src/src/main/java/com/google/crypto/tink/internal/JsonParser.java