Skip to content
Advertisement

Separate received from web-service as object std class [closed]

I got this from web service and tried so many solution that I found in similar topics, but couldn’t separate them to use in my code:

JavaScript

Please help me how can I use these information?

Advertisement

Answer

The response that you received from the web service has json encoded payload. To use that pay load you will require to json_decode it first.

Here is how you can loop over the result items to access each individual item in the list.

JavaScript

Try using the code like this:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement