carson-katri / swift-request

Declarative HTTP networking, designed for SwiftUI
MIT License
731 stars 41 forks source link

Improved `Json` support #2

Closed carson-katri closed 5 years ago

carson-katri commented 5 years ago

Rewrite Json to rely more heavily on the builtin JSONSerialization. All it would do is handle subscripting and retrieving values.

JsonBuilder and JsonProperty would still be available.

JsonBuilder would support tuples as well:

Json {
    ("key", "value")
}

Provide optionals for .string, .int, etc. Possible named .stringOptional?

carson-katri commented 5 years ago

See #9