diff --git a/packages/jsondiffpatch/src/formatters/jsonpatch.ts b/packages/jsondiffpatch/src/formatters/jsonpatch.ts index ec710f3..fad6be0 100644 --- a/packages/jsondiffpatch/src/formatters/jsonpatch.ts +++ b/packages/jsondiffpatch/src/formatters/jsonpatch.ts @@ -101,7 +101,7 @@ class JSONFormatter extends BaseFormatter { }; context.buildPath = function (path: (string | number)[]) { - return path.map((path) => this.escapePath!(path)).join('/') + return path.map((path) => this.escapePath!(path)).join('/'); } context.escapePath = function (path: string | number) {