JSON read and write from twitter api (depreciated)