Hi @newroco, OCP\JSON is deprecated since version 8.1 and will run into the 3 year deprecation time soon. With the upcoming Nextcloud 14 this will not be available anymore. We highly encourage you to move over from those manual checks in the files in ajax/ to the AppFramework way of writing methods. This then takes care of all the checks that are provided by OCP\JSON out of the box. If you need help with the migration please reach out to us. The AppFramework was introduced in version 7.
The removal PR: nextcloud/server#8943
A PR that shows how to move from the ajax/ files to AppFramework: nextcloud/server#8800
Hi @newroco,
OCP\JSONis deprecated since version 8.1 and will run into the 3 year deprecation time soon. With the upcoming Nextcloud 14 this will not be available anymore. We highly encourage you to move over from those manual checks in the files inajax/to the AppFramework way of writing methods. This then takes care of all the checks that are provided byOCP\JSONout of the box. If you need help with the migration please reach out to us. The AppFramework was introduced in version 7.The removal PR: nextcloud/server#8943
A PR that shows how to move from the
ajax/files to AppFramework: nextcloud/server#8800