Modify JSON files with functions.