Q:

Navigation drawer material design-using the local JSON file in res/raw folder

I have a JSON file within my res/raw folder in android studio and I want to use that as my Navigation drawers List Items.  I have not found a suitable tutorial to help me out.  Is it possible to do this?  
Please if anyone knows a way where it is easy to understand and implement this, a tutorial or video etc would be great. 

A:

try this code
InputStream is = getResources().openRawResource(R.raw.json_file);
Writer writer = new StringWriter();
char[] buffer = new char[1024];
try {
  Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
  int n;
  while ((n = reader.read(buffer)) ! = -1) {
    writer.write(buffer, 0, n);
   }
 } finally {
is.close();
}

String jsonString = writer.toString();

