parsing json data to hash