get json data and store it