This has been partly done for old-format files. Need to figure out how this changes for new-style result JSON. See also https://github.com/twitterdev/Twitter-API-v2-sample-code