removed custom json replacer and used json-strigify-safe npm module