I need to create a JsonString from a NSString, without any key in ObjC.
All tutorials talks about serialization from NSDictionary or NSData.
My string is like @”fr-FR”.
The result i’m looking for is like @”{“fr-FR”}”, but dynamically.
Can’t do it myself because i will need to do the same stuff for different kind of arguments.
Thanks in advance 🙂
To achieve the result you are asking for (even if it’s not a proper JSON) you could try something like this: