taquitos / JLObjectMapping

Simple JSON to object and object to JSON mapping inspired by Jackson JSON Processor for Java.
MIT License
5 stars 3 forks source link

Add mapping for enumeration and option values #6

Open taquitos opened 9 years ago

taquitos commented 9 years ago

Right now enums and options are transcoded as whatever primitive values they are backed by. It would be nice to be able to provide strings that map to those values: typedef NS_ENUM(NSInteger, MyEnum) { MyEnumAValue = 1, MyEnumSecondValue, MyEnumThirdValue }; so MyEnumSecondValue could map to "SecondValue" in the JSON instead of "2" (and so on)

taquitos commented 9 years ago

option bit masks would be interesting....