introduce file_put_data and file_get_data
This is a very handy way to save API results and then parse the result again.