seperate json to segment