generic-json-swift icon indicating copy to clipboard operation
generic-json-swift copied to clipboard

A simple Swift library for working with generic JSON structures

Results 7 generic-json-swift issues
Sort by recently updated
recently updated
newest added

Allow mutation of JSON object and its members: ``` func updateCost(data: Data) -> Data { var json = try JSONDecoder().decode(JSON.self, from: data) json["items"].arrayValue![3]["cost"] = 53 return try JSONEncoder().encode(json) } ```

### Core Data Interop How should `JSON` properties be used in conjunction with Core Data? ### Discussion `JSON` neatly solves the case where a Swift type needs to be created...

Is there a way to loop through the keys in JSON object? Example: https://github.com/SwiftyJSON/SwiftyJSON#loop

Hej, it is nice to have `JSON` as an intermediate correctly-typed abstraction over same JSON data, but at some point I might still want to work with some dedicated data...

The demand for mutation support is obvious (#6, #25). I was trying to stick to immutability, but if people need to patch a JSON value, the `foo["bar"] = baz` syntax...

Running tests through Docker: docker run --rm --volume "$(pwd):/package" --workdir "/package" swift:4.2 /bin/bash -c "swift test" - [ ] Make `swift test --generate-linuxmain` a part of the build process so...

Sendability is getting more and more present in Swift. This PR adds conformance to the `Sendable` protocol to `JSON` when the compiler version is `>=5.5`. There is nothing else to...