title: Android: what is the best way to store JSON data offline for the app in android?
body: <p>I want to implement an app, that will show the route number, the rider has boarded in google map. So to find the route number I need some information about the routes, which are defined in the JSON file. The  information in the JSON file will be proccessed and parsed offline from the app. It should be installed  and uninstall with the app too. The JSON file contains more  than 100 route_direction. It will looks something like the code below. In which folder can I store the JSON file in my Android project? And what is the best way to store data like this?</p>
  
  <p>JSON file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{"route_direction":[
     {
       1_ab:{
                       
                      { 
                        stopsName_arrivalTime:{"abc":{"mon-fri":[05:33,06:00,06:30,...],
                                                          "sat":[],
                                                          "son":[]
                                                                 }
                                               }, 
  
                                               
                           stops_loca:{lat:53.337994, long:10.600423} ,
  
                      },
                      { 
                        stopsName_arrivalTime:{"def":{"mon-fri":[],
                                                          "sat":[],
                                                          "son":[]
                                                           }
                                               }, 
  
                                               
                           stops_loca:{lat:53.740624, long:10.101322} 
  
                      },
                      { 
                        stopsName_arrivalTime:{"hgk":{"mon-fri":[],
                                                          "sat":[],
                                                          "son":[]
                                                                 }
                                               }, 
  
                                               
                           stops_loca:{lat:53.644834, long:10.203372} 
  
                      }
  
  
  
                  }
  
         },
  
          {1_ba:{
                       
                      { 
                        stopsName_arrivalTime:{"hgk":{"mon-fri":[05:33,06:00,06:30],
                                                          "sat":[],
                                                          "son":[]
                                                                 }
                                               }, 
  
                                               
                           stops_loca:{lat:53.437994, long:10.400423} ,
  
                      },
                      { 
                        stopsName_arrivalTime:{"def":{"mon-fri":[],
                                                          "sat":[],
                                                          "son":[]
                                                           }
                                               }, 
  
                                               
                           stops_loca:{lat:53.540624, long:10.601322} 
  
                      },
                      { 
                        stopsName_arrivalTime:{"abc":{"mon-fri":[],
                                                          "sat":[],
                                                          "son":[]
                                                                 }
                                               }, 
  
                                               
                           stops_loca:{lat:53.244834, long:10.703372} 
  
                      }
  
  
                  }
  
          },........
  
     ]
  
  }</code></pre>
  </div>
  </div>
  </p>