Page 1 of 1

Rest service map to local variable question

Posted: Wed Jun 27, 2012 1:49 pm
by Emmz

Looking for advice on how to deal with rest service mapping to local storage for off-line list usage.
I want to load a json response from mysql DB that contains data to populate list elements.
example DB.
Image

What is the best way to do this?
I should note that I have full control of php script that generates the output.


Rest service map to local variable question

Posted: Wed Jun 27, 2012 4:42 pm
by maxkatz

If the service doesn't return a collection, you could map the fields directly to local storage. If the service returns a collection, it's better to save the entire JSON into local storage.