I have database like which have three coloums( id(integer) , startdate(text), enddate(text),).
I want to read all the entries for these coloums, convert them to Json and send to web url.
I know how read values but did not know how to make Json from these values.
Please any coding help…
I have database like which have three coloums( id(integer) , startdate(text), enddate(text),). I want
Share
Why don’t you try:
`
Then send the json object via a http post
`
so if for example you want to create a JSON object containing all the triplets you get from an SQLite db it would be:
where ID, START_DATE and END_DATE are the corresponding names of the fields in DB.
I cannot test my code right now but I believe it works