Code example for JsonObject

Methods: get

0
    } 
 
    private Name getQnameFromJson(JsonObject nameObj) {
        // note: this creates a name if it does not exist 
        Name name = this.nameRepo.get( new SimpleName(
            nameObj.get("namespace").getAsString(), 
            nameObj.get("localName").getAsString()) );
        return name;
    } 
}