handle data by using JSON