First the small introduction about KNilOptions
and NSJSONReadingMutableContainers
.
KNilOptions
stand for 0 and NSJSONReadingMutableContainers
is stand for (1UL << 0)
in enum.
So in the C++,
UL just means the literal is an unsigned long
integer type. The default integer literal is int
.
This both (KNilOptions
and NSJSONReadingMutableContainers
) will help in the options for reading the JSON
data and creating the Foundation objects.
You can create the dictionary from the JSON string with the NSJSONReadingMutableContainers
option, which creates all arrays and dictionaries as mutable objects so that you can add a new key in object (Dictionary) and add new Dictionary in your array without changing in the reference and you will get the full mutable structure.