Here you can find the source of jsonObjectToBuilder(JsonObject jo)
public static JsonObjectBuilder jsonObjectToBuilder(JsonObject jo)
//package com.java2s; //License from project: Open Source License import java.util.Map.Entry; import javax.json.Json; import javax.json.JsonObject; import javax.json.JsonObjectBuilder; import javax.json.JsonValue; public class Main { public static JsonObjectBuilder jsonObjectToBuilder(JsonObject jo) { JsonObjectBuilder job = Json.createObjectBuilder(); for (Entry<String, JsonValue> entry : jo.entrySet()) { job.add(entry.getKey(), entry.getValue()); }//w w w . j av a2s . c o m return job; } }