Report
Question
I’m trying to convert a server side Ajax response script into a Django HttpResponse, but apparently it’s not working. This is the server-side script: /* RECEIVE VALUE */ $validateValue=$_POST['validateValue']; $validateId=$_POST['validateId']; $validateError=$_POST['validateError']; /* RETURN VALUE */ $arrayToJs = array(); $arrayToJs[0] = $validateId; $arrayToJs[1] = $validateError; if($validateValue =="Testuser"){ // Validate?? ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
10 Answer 2 views

Report
Question
I have been confused over when to use these two parsing methods. After I echo my json_encoded data and retrieve it back via ajax, I often run into confusion about when I should use JSON.stringify and JSON.parse. I get [object,object] in my ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
15 Answer 2 views

Report
Question
I get a strange error using json_decode(). It decode correctly the data (I saw it using print_r), but when i try to access to info inside the array i get: Fatal error: Cannot use object of type stdClass as array in C:UsersDailsoftwareabs.php ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
11 Answer 2 views

Report
Question
I’m using Jackson JSON library to convert some JSON objects to POJO classes on an android application. The problem is, the JSON objects might change and have new fields added while the application is published, but currently it will break ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
9 Answer 2 views

Report
Question
I have the following JSON structure: [{ "id":"10", "class": "child-of-9" }, { "id": "11", "classd": "child-of-10" }] How do I iterate over it using jQuery or JavaScript? ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
13 Answer 2 views