Write json to file and then POST that, easier to deal with escaping issues