You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ Available options:
62
62
*`JSON_URI_FRAGMENT_ID` is an option to use URI Fragment Identifier Representation (example: "#/c%25d"). If not set default JSON String Representation (example: "/c%d").
63
63
*`SKIP_JSON_PATCH` is an option to improve performance by not building JsonPatch for this diff.
64
64
*`SKIP_JSON_MERGE_PATCH` is an option to improve performance by not building JSON Merge Patch value for this diff.
65
+
*`TOLERATE_ASSOCIATIVE_ARRAYS` is an option to allow associative arrays to mimic JSON objects (not recommended).
65
66
66
67
Options can be combined, e.g. `JsonDiff::REARRANGE_ARRAYS + JsonDiff::STOP_ON_DIFF`.
67
68
@@ -123,9 +124,10 @@ Applies patch to `JSON`-decoded data.
123
124
#### `setFlags`
124
125
Alters default behavior.
125
126
126
-
Available flag:
127
+
Available flags:
127
128
128
129
*`JsonPatch::STRICT_MODE` Disallow converting empty array to object for key creation.
130
+
*`JsonPatch::TOLERATE_ASSOCIATIVE_ARRAYS` Allow associative arrays to mimic JSON objects (not recommended).
0 commit comments