PDA

View Full Version : Custom non-JSON reader for ajax proxy



mrandersen
16 Oct 2014, 2:35 AM
Hi,

I was wondering if there is any documentation on how to create a non-JSON proxy as my ajax call returns a csv file.

Thank you

skirtle
17 Oct 2014, 12:09 AM
I don't believe there are any docs, you'd have to study the code of the existing readers.

My suggestion would be to subclass ArrayReader and just add an override to convert the CSV into an array of arrays, leaving the existing reader to do the rest. This should be quite quick to implement (once you've got CSV parsing) and would also be easier to upgrade if the reader API changes in future.