Java Json Create emptyArray()

Here you can find the source of emptyArray()

Description

Convenience to build an empty JsonArray

License

Apache License

Declaration

public static JsonArray emptyArray() 

Method Source Code

//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();
    }
}

Related

  1. createArrayBuilder()
  2. createArrayBuilder()
  3. createJsonFrom(JsonObject user, String... ignoreKeys)
  4. createJsonValue(String string)
  5. createPrettyWriterFactory()
  6. getJson(T t)
  7. object2JsonDateSerializer(Object obj, final String dateformat)
  8. toBean(Class clazz, String json)
  9. toJson(E e)