using json format to store data