-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parent links and strict parsing are now the default behavior. New macros JSMN_LOW_MEMORY and JSMN_NON_STRICT disable these behaviors. JSMN_PARENT_LINKS still exists, but is defined by default unless JSMN_LOW_MEMORY is defined. JSMN_STRICT no longer exists. Instead, we have three new macros: JSMN_PERMISSIVE_PRIMITIVES - Relaxes validation of primitives. Any characters except whitespace and {}[],:" become allowed. (Normally, only "true", "false", "null", and RFC 8259 numbers are permitted.) JSMN_PERMISSIVE_STRINGS - Relaxes validation of strings. Any characters allowed. (Normally, control characters (<0x20) and invalid escape sequences are foridden.) JSMN_PRIMITIVE_KEYS - Allows primitives to be used as object keys. These can be defined individually, or defining JSMN_NON_STRICT will cause all to be defined. Tests have not yet been adapted for these changes.
- Loading branch information
1 parent
44ee942
commit de2b56a
Showing
1 changed file
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters