add gson gradle code example Example: gson gradle dependency dependencies { implementation 'com.google.code.gson:gson:2.8.6' }