Before starting, I am a complete beginner, and I hope that I will not abuse the terms when I ask my question.
I am starting to write an HTML5 / Javascript application using the Intel XDK to request barcodes for video games from an online api, and I only need one piece of JSON result (the name of the game), then to continue and use it in my application.
The JSON result is as follows:
{"0":{"productname":"The Elder Scrolls V: Skyrim","imageurl":"http://ecx.images-amazon.com/images/I/413Gdr3FzqL._SL160_.jpg","producturl":"","price":"14.00","currency":"USD","saleprice":"","storename":"N/A"},"1":{"productname":"Skyrim X360","imageurl":"http://ecx.images-amazon.com/images/I/41QbF1Vg5KL._SL160_.jpg","producturl":"","price":"18.00","currency":"USD","saleprice":"","storename":"N/A"},"2":{"productname":"Bethesda Softworks Skyrim X360","imageurl":"http://ecx.images-amazon.com/images/I/41X97hqaJwL._SL160_.jpg","producturl":"","price":"23.95","currency":"USD","saleprice":"","storename":"N/A"},"3":{"productname":"BETHESDA SOFTWORKS 11763 / Skyrim X360","imageurl":"http://ecx.images-amazon.com/images/I/41IaEzP-6pL._SL160_.jpg","producturl":"","price":"34.00","currency":"USD","saleprice":"","storename":"N/A"}}
All I want to use in my application is the first "productname" entry.
JSON from the api provider I have an account with this way on the remote URL for example, we will call the URL: http://JsonIs.here
I want to be able to request a JSON URL and return "The Elder Scrolls V: Skyrim" as a string, which I can then use elsewhere in the application.
The barcode scan works for me, I can create the GET request URL already, I just don’t know where to start calling this URL, and then return the required small part of the information.