Java Json jsonObject(String key, JsonValue val)

Here you can find the source of jsonObject(String key, JsonValue val)

Description

json Object

License

Open Source License

Declaration

public static JsonObject jsonObject(String key, JsonValue val) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.json.Json;

import javax.json.JsonObject;

import javax.json.JsonValue;

public class Main {
    public static JsonObject jsonObject(String key, JsonValue val) {
        return Json.createObjectBuilder().add(key, val).build();
    }/*from   www. j a v a 2  s  .c  om*/
}

Related

  1. getFromGson(String json, Class clazz)
  2. getJSONDate(long l)
  3. getJsonMapper()
  4. hasKey(JsonObject object, String name)
  5. jsonEquals(JsonArray expected, JsonArray actual, boolean strict)
  6. jsonObjectToBuilder(JsonObject jo)
  7. jsonPrettyPrinter(Object object)
  8. jsonString(JsonValue value)
  9. jsonValueToJsonString(final JsonValue jsonValue, final String key)