Export to PDF for java is not working for json!

I loading my grid from json and when I try to generate pdf it is giving error. It works fine with xml. Does it means that json cannot be used for pdf generation?
Please help

DataSource type doesn’t matter

If issue still occurs - please provide any kind of sample or demo page where it can be reconstructed.