checking for json parsing and changing file permissions