Fixed a bug that slowed down the script; Added open/close bracket for JSONArray files; Added code to safe the un-filtered data.