routing and begin parsing json