Skip to content

Dev #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: base64
Choose a base branch
from
Open

Dev #2

wants to merge 34 commits into from

Conversation

Benetos
Copy link
Owner

@Benetos Benetos commented Sep 27, 2019

No description provided.

carson-katri and others added 30 commits July 20, 2019 23:02
* Initial codable support

* Make  generic

* Codable support in RequestView

* Improved Codable support for RequestView
* Codable Support
* RequestImage
`JsonBuilder` was removed in favor of `ExpressibleByDictionaryLiteral`, as well as other literals:
```swift
let json: Json = ["key": "value"]
let json: Json = ["Hello", "World"]
let json: Json = "Hello, world!"
let json: Json = 5
let json: Json = 9.41
```

`@dynamicMemberLookup` allows subscripting to be more expressive:
```swift
// Instead of:
myJson["key"][0]["key2"]
// We can do:
myJson.key[0].key2
```
You can also use the lookup to set values:
```swift
myJson.key[0].key2 = 5
myJson.key = ["Hello", "World"]
```
Fix Json multiple subscript setter
Fix Json dictionary literal constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants