Here you can find the source of jsonBigInteger(JsonValue value)
public static BigInteger jsonBigInteger(JsonValue value)
//package com.java2s; import java.math.BigInteger; import javax.json.JsonNumber; import javax.json.JsonString; import javax.json.JsonValue; public class Main { public static BigInteger jsonBigInteger(JsonValue value) { if (value == null || value.getValueType() == JsonValue.ValueType.NULL) return null; if (value.getValueType() == JsonValue.ValueType.NUMBER && (value instanceof JsonNumber)) return ((JsonNumber) value).bigIntegerValue(); if (value.getValueType() == JsonValue.ValueType.STRING && (value instanceof JsonString)) { try { return new BigInteger(((JsonString) value).getString()); } catch (NumberFormatException ex) { System.out.println(ex.toString()); }/* w ww . j a va 2 s .co m*/ } return null; } }