Package org.vertx.java.core.json

Examples of org.vertx.java.core.json.JsonElement.asObject()


  public ChangeAwareJsonElement getElement(String fieldName) {
      JsonElement value = inner.getElement(fieldName);
      if (value.isArray()) {
        return convertJsonArray(value.asArray());
      } else {
        return convertJsonObject(value.asObject());
      }
    }

  public Number getNumber(String fieldName) {
      return inner.getNumber(fieldName);
View Full Code Here


  public ChangeAwareJsonElement getElement(String fieldName, JsonElement def) {
      JsonElement value = inner.getElement(fieldName, def);
      if (value.isArray()) {
        return convertJsonArray(value.asArray());
      } else {
        return convertJsonObject(value.asObject());
      }
    }

  public boolean getBoolean(String fieldName, boolean def) {
      return inner.getBoolean(fieldName, def);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.