Java Json Get getLongProperty(JsonObject object, String property)

Here you can find the source of getLongProperty(JsonObject object, String property)

Description

get Long Property

License

Open Source License

Declaration

public static long getLongProperty(JsonObject object, String property) 

Method Source Code


//package com.java2s;

import javax.json.*;

public class Main {
    public static long getLongProperty(JsonObject object, String property) {
        return object.getJsonNumber(property).longValue();
    }//  w  ww.  j  a va  2 s . c  om
}

Related

  1. getJsonIntArray(Iterable integers)
  2. getJsonNumberOrNull(JsonObject object, String key)
  3. getJsonObject(JsonObject object, String name)
  4. getJsonValue(String json_path, JsonObject response)
  5. getKeyAsString(JsonObject obj, String key, String defaultValue)
  6. getPrettyJsonWriterFactory()
  7. getSitesFromDb(String replicationSitesInDB)
  8. getString(JsonObject jso, String name)
  9. getValueFromJson(JsonObject currentJsonObject, String key)