Example JSON:
[{"steward":"EMPL-0102","description":"Elish Guage","emplyear":"2001","emplmonth":"Nov","empl":"HOME","perhour":"50"},
{"steward":"EMPL-9002","description":"Bush Harcourt","emplyear":"1990","emplmonth":"Nov","empl":"HOME","perhour":"50"},
{"steward":"EMPL-0102","description":"John Long","emplyear":"2001","emplmonth":"Nov","empl":"OFFICE","perhour":"50"},
{"steward":"EMPL-9002","description":"Wensel Gold","emplyear":"1990","emplmonth":"Nov","empl":"OFFICE","perhour":"50"}]
I need step-by-step workable Delphi snippet to translate JSON data received from PHP website to local database table. I have tried reading some documents but could not understand the proper implementation of my requirement.
I received the JSON data from my website and wish to parse this data into my local table.
I wish to asses the JSON record fields such as in table format (Column and rows).
I will really like to have it similar to
FieldByName('field').AsString = JSONFieldByName('steward').AsString
then to the next JSON array record.