JSONUtilities icon indicating copy to clipboard operation
JSONUtilities copied to clipboard

Easily load JSON objects and decode them into structs or classes

Results 6 JSONUtilities issues
Sort by recently updated
recently updated
newest added

The use case is you can already have an enum that conform to JSONPrimitiveConvertible. But if you need the enum to have a raw type like String, then you get...

Since now [generic subscripts](https://github.com/apple/swift-evolution/blob/master/proposals/0148-generic-subscripts.md) have been introduced I think we should be aiming to move the API to them as this cleaner and simpler. For example: ```swift let jsonDictionary: [String:...

enhancement

JSONUtilities doesn't build anymore in Carthage 0.26.0+ Not sure what the reason is. I've opened an issue there https://github.com/Carthage/Carthage/issues/2230

Currently our API to load a JSON dictionary from a filename uses a static function: ```swift let filename = "myjsonfile" let dictionary = try JSONDictionary.from(filename: filename) ``` This could be...

enhancement

It would great to somehow hook into when InvalidItemBehaviours happen, especially the non throwing kinds, like `.remove` `.value`, and `.custom` when it doesn't throw. That way a client app can...

If a key is "some.key" this treated as a keypath made of "some" and "key". Even though it's rare that an API would provide keys with dots it would be...