Skip to content

Instantly share code, notes, and snippets.

@eleumik
Created March 26, 2017 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eleumik/914d0e93e3b9d7014a4a9cd967b54c3b to your computer and use it in GitHub Desktop.
Save eleumik/914d0e93e3b9d7014a4a9cd967b54c3b to your computer and use it in GitHub Desktop.
Johnzon org.apache.johnzon.core.JsonReaderImpl
@Override
public JsonObject readObject() {
final JsonStructure read = read();
if (false == read instanceof JsonObject) throw new JsonParsingException("Not a JSON Object", parser.getLocation());
return (JsonObject)read;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment