script for posting json files