I have an image field with the output set to 'Single-file when populated, null when empty' which outputs a PageImage object fine normally, but when I load it using ajax the same field always outputs a PageImages array with a single image.
What could be causing this?
Processwire 3.0.182
PHP 7.3
MariaDB 10.3
Nginx