Timeline for Rest API response for api inside the extension module appends square bracket
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2020 at 7:21 | comment | added | Sudhir | @usman sorry for the late reply. I didn't find any solution so had to do it the dirty way to remove ' [] ' from the end of the json on the consuming end. Since i had only one client as a consumer so i didn't had to look further. | |
Nov 10, 2020 at 12:15 | comment | added | usman | @Sudhir have you got the solution? | |
Aug 4, 2020 at 16:18 | comment | added | Sudhir | I tried with that too. Not working. | |
Aug 4, 2020 at 14:33 | comment | added | Ritesh Santra | Can you please check with $jsonResponse = json_encode($returnData); | |
Aug 4, 2020 at 14:25 | comment | added | Sudhir | That is the problem, it returns incorrect json as explained by the output of option 2. It is appended by a [] square brackets. | |
Aug 3, 2020 at 15:09 | review | Low quality posts | |||
Aug 3, 2020 at 16:05 | |||||
Aug 3, 2020 at 14:47 | history | answered | Ritesh Santra | CC BY-SA 4.0 |