android - Use Retrofit to parse text from JSON file in local -


i have json text file in /res/raw. after reading text content, use retrofit parse json text object. seems retrofit accept input file in server.

is there anyway reuse retrofit's json parser module in case?

you can configure gson instance once , use both local parsing , retrofit via restadapter.builder.setconverter(new gsonconverter(customgson)


Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

Define custom list-style-type in CSS -