I retrieved a JSON data from from OMDB using the right query and got back "OMDBAPIData.json" and got the data below but then what?
Code: Select all
{"Title":"Stargate: The Ark of Truth","Year":"2008","Rated":"Not Rated","Released":"11 Mar 2008","Runtime":"97 min","Genre":"Action, Adventure, Drama, Fantasy, Sci-Fi","Director":"Robert C. Cooper","Writer":"Robert C. Cooper","Actors":"Ben Browder, Amanda Tapping, Christopher Judge, Michael Shanks","Plot":"SG-1 searches for an ancient weapon which could help them defeat the Ori, and discover it may be in the Ori's own home galaxy. As the Ori prepare to send ships through to the Milky Way to attack Earth, SG-1 travels to the Ori galaxy aboard the Odyssey. The International Oversight committee has their own plans and SG-1 finds themselves in a distant galaxy fighting two powerful enemies.","Language":"English","Country":"USA, Canada","Awards":"N/A","Poster":"https://m.media-amazon.com/images/M/MV5BMjEyODQwMzYyM15BMl5BanBnXkFtZTcwOTY5MzI3NA@@._V1_SX300.jpg","Ratings":[{"Source":"Internet Movie Database","Value":"7.4/10"}],"Metascore":"N/A","imdbRating":"7.4","imdbVotes":"18,866","imdbID":"tt0942903","Type":"movie","DVD":"11 Mar 2008","BoxOffice":"N/A","Production":"MGM","Website":"N/A","Response":"True"}
Code: Select all
JsonHandle.i = LoadJSON(#PB_Any, "OMDBAPIData.json", #PB_JSON_NoCase)
If JsonHandle.i
Debug ComposeJSON(JsonHandle.i, #PB_JSON_PrettyPrint)
Else
Debug "Could not open the JSON data file"
EndIf