Here you can find the source of emptyArray()
public static JsonArray emptyArray()
//package com.java2s; //License from project: Apache License import javax.json.Json; import javax.json.JsonArray; public class Main { /**/*from w w w .j av a2 s . c om*/ * Convenience to build an empty JsonArray * <p> * @return */ public static JsonArray emptyArray() { return Json.createArrayBuilder().build(); } }