separate json data into a different file