i have JSON Array data come from Mysql and Php , i want to store this JSON Array in SQLite and Get it back Like A JSON Array
this the output of the json array it come from the php
{
"task": [
{
"id": "1",
"tid": "100",
"ttitles": "test",
"stime": "2018-10-08 02:40:28",
"seentime": null,
"subject": "Testing",
"ftime": null,
"uid": "1101",
"tsp": "11001"
},
{
"id": "2",
"tid": "101",
"ttitles": "tesst",
"stime": "2018-10-08 02:41:17",
"seentime": null,
"subject": "Tessting",
"ftime": null,
"uid": "1101",
"tsp": "110001"
}
]
}
and this the AS3 code to get the data result from php
public function processTasks():void
{
var request:URLRequest = new URLRequest();
request.url = "http://xxxxxxxxxxxxxxxxxx.xxx/a/tasks.php?
empid="+empid;
request.requestHeaders = [new URLRequestHeader("Content-Type",
"application/json")];
request.method = URLRequestMethod.GET;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, receive);
loader.load(request);
}
public function receive(event:Event):void
{
// here i want get the Json Array data then store in to SQLite
// And get back again as a JSON .
}
public function receive(event:Event):void{ }"i want get the Json Array data"did you try something likemyString = event.data;since JSON data is a String as told in first comment? (2)"store in to SQLite"what effort (code) from your research is not working? Maybe we can help fix that if you show us (3)"get back again as a JSON"again show code of what you've tried from reading manuals & tutorials that is not working... We can only help you fix your code.