JSON for Charts in PDF

I would like to insert charts in PDF page using SC pdf app. sc_pdf_print(xx) will print the field value in pdf. But how can I get all the values as JSON to use it as data value in my chart. Is there any way?