Add support for get/setByPath to JsonObject and JsonArray.