Access The Marvel Developer API With REST And JSON In Delphi XE6 Firemonkey On Android And IOS

Delphi XE6 Firemonkey Marvel Developer REST API Android DemoDeveloper Daniele Spinetti has some code snippets up demonstrating how to access the Marvel Developer API with Delphi XE6 Firemonkey. The API is REST based and returns JSON which are easily access anded processed using the built in REST client components. I don’t see source code for the app itself but you should be able to easily build your own version using the code snippets. Basically it uses the HeaderFooter template and then a REST client component to download the data. Once the download is complete it uses TJSONObject to parse the returned JSON and set the various data to the fields on the form. I like this code snippet as it is a good example of the JSON parser in action in Delphi XE6 Firemonkey. It does use some custom code to load the thumbnail but you can get similar code to do that here and here. This code should work on all Firemonkey platforms which are Android, IOS, Windows, and OSX. Check out the JSON parser code snippet:

Head over and read the full blog post to check out the other code snippets and screenshots from the app.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
AdMob Google Play Services API HotFix For Delphi XE6 Firemonkey

Embarcadero has released a hotfix for Delphi XE6 Firemonkey with an updated version of the TBannerAd component that supports the...