mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
NSJSONSerialization: Implement NSJSONWritingSortedKeys
This commit is contained in:
parent
0606cb9db4
commit
cc0d8d88e5
3 changed files with 58 additions and 10 deletions
|
@ -50,7 +50,13 @@ enum
|
|||
* If this is not set, then the writer will not generate any superfluous
|
||||
* whitespace, producing space-efficient but not very human-friendly JSON.
|
||||
*/
|
||||
NSJSONWritingPrettyPrinted = (1UL << 0)
|
||||
NSJSONWritingPrettyPrinted = (1UL << 0),
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_13, GS_API_LATEST)
|
||||
/**
|
||||
* When writing JSON, sort keys in lexicographic order.
|
||||
*/
|
||||
NSJSONWritingSortedKeys = (1UL << 1)
|
||||
#endif
|
||||
};
|
||||
/**
|
||||
* A bitmask containing flags from the NSJSONWriting* set, specifying options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue