j2s icon indicating copy to clipboard operation
j2s copied to clipboard

A macOS app to convert JSON to Swift structs

Results 5 j2s issues
Sort by recently updated
recently updated
newest added

And/or we need to scan our tree of structs to see if anything has a custom strategy to handle. For example: In the demo we show off, the given `JSONDecoder()`...

BCP 47 defines [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). Given the following JSON: ```json { "language": "en", "foo": true } ``` `j2s` will currently output the following Swift code: ```swift public struct...

this one requires a bit more thought, since macOS and iOS have different color constructs

for the same reason as identifying locale strings and turning them into `Locale` objects.

`j2s` String [depluralization](https://github.com/zadr/j2s/blob/main/j2s/StringTransformations.swift#L14) is currently naive and unhelpfully does the wrong thing for a lot of plural words. It would be great to do better.