Rewrite JsonObject and JsonArray