Copy constructors for JsonObject and JsonArray.