script for adding fields to json files