Skip to content

Commit dac3f7b

Browse files
committed
Updated docs
1 parent 53494d5 commit dac3f7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ console.log(stringify(obj)) // '{"matchfoo":"42","otherfoo":"str","matchnum":3,"
175175
#### Additional properties
176176
`fast-json-stringify` supports additional properties as defined inside JSON schema.
177177
*additionalProperties* must be an object or a boolean, declared in this way: `{ type: 'type' }`.
178-
*additionalProperties* will work only for the properties that are not explicitly listed in the *properties* and *patternProperties* objects.
179-
If *additionalProperties* is not present or is setted to false, every property that is not explicitly listed in the *properties* and *patternProperties* objects, will be ignored, as said in <a href="missingFields">Missing fields</a>.
178+
*additionalProperties* will work only for the properties that are not explicitly listed in the *properties* and *patternProperties* objects.
179+
180+
If *additionalProperties* is not present or is setted to false, every property that is not explicitly listed in the *properties* and *patternProperties* objects, will be ignored, as said in <a href="#missingFields">Missing fields</a>.
181+
If *additionalProperties* is setted to *true*, it will be used `fast-safe-stringify` to stringify the additional properties. If you want to achieve maximum performances we strongly encourage you to use a fixed schema where possible.
180182
Example:
181183
```javascript
182184
const stringify = fastJson({

0 commit comments

Comments
 (0)