When you get data as JSON format, you must still use import mapping and probably convert that JSON to Mendix objects.
Only then you can use that Mendix entity in data grid. So you might have to use non-persistent entity or persistent entity.
So, pagination should work by default.
Have you tried this already? If it does not work, let know what is not working.