- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I was trying to integrate a new service to Intel XDK as the following tutorial: https://software.intel.com/en-us/videos/integrating-a-new-service. And everything went fine, except that in the end, on the response body, Intel XDK didn't recognized the JSON fields as it did with the ESPN API in the tutorial.
Instead, Intel XDK showed the response body entirely green. Anyone knows what it may possibly be wrong? I want to get the fields so I can create a data binding and use App Designer to put the content into a listview.
Thanks in advance, Ernani
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will escalate your issue to someone on the Intel XDK Webservices team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The green color indicates the returned response is a string and not json. Look into your .js file or use the debug it button to make sure that this is not a string. You might need to use JSON.stringify.
You can still create a data binding with this but cannot drive a listview the way the ESPN tutorial does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
JSON.parse()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your data is not proper JSON formate.
You can use this in php(Api provide source)
header('Content-Type: application/json');

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page