How to load local json file in ionic cordova on android device
<p>This here is my angular controller :</p>

<pre><code>.controller( 'QuestionsController', function( $scope, $state, $http, $ionicSlideBoxDelegate, $q ) {
var answer = null;  // global answer variable
var totalScore = 0; // global totalScore variable

$scope.init = function() {
    // the question number
    $scope.questionNumber = 1;

    $scope.getQuestions().then( function( res ) {
        alert( res );
        $scope.questionList = res;
    }, function( err ) {
        alert( err );
        console.log( status );
    })
};

// this fetches the questions from the json data source.
$scope.getQuestions = function() {
    var defer = $q.defer();

    $http.get( 'data/data.json' ).success( function( data ) {
        defer.resolve( data );
    }, function( status ) {
        defer.reject( status );
    });

    return defer.promise;
};
</code></pre>

<p>I have tried replacing the json file path to the following and it still doesn't work:</p>

<pre><code>$http.get('file:///android_asset/www/data/data.json')

$http.get('./data/data.json')
</code></pre>

<p>I really need help, and running on android version 5.1 (Lollipop)</p>