Pruning and Updating Files for JSON implementation