Skip navigation

Import JSON data files

Import JSON data files: Android App Development Essentials: Local Data Storage
Import JSON data files: Android App Development Essentials: Local Data Storage

The Gson library can be used to read a JSON file into memory, and automatically cast the results as your own strongly typed data classes. JSON strings don't store the types of our data, so you have to tell Gson what type to use when importing. If you're only working with a list of data, it's helpful to create a wrapper class: a data management class that has that strongly typed list as a member.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 9m
Duration
13,928
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now