Added the validating of JSON in filePutData()