With this snippet you can easily and quickly mock an API during developmentby placing JSON files in your res/raw/
folder. This comes in handy when the actual
API does not exist yet.
All snippets tagged with json
Page 1 of 1Using local JSON files as an API placeholder with Retrofit
Handling JSON
Converting Python dictionaries to and from JSON is easy with the json
package.