scout
BackedCodable
scout | BackedCodable | |
---|---|---|
8 | 1 | |
127 | 491 | |
- | - | |
4.2 | 0.0 | |
2 months ago | about 3 years ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scout
-
Is there a neat way to work with deeply-nested JSON?
I developed a library that is better suited for such cases than plain Decodable. You can specify a path in the data and at the end of the path specify a Decodable type to be instantiated from the data.
-
A different way of reading JSON: Part 2!
Not 100% sure but you might find Scout interesting for your needs
-
Best practices for parsing dynamic/unstructured JSON?
I developed Scout for this exact purpose because I had to find a solution to get a value when the data structure is not known at build time.
- Scout 2. ;. ;
-
Get XML, parse output, get a date and calculate differences?
If you are ok to use a program, you can use Scout like that: curl [your curl request here] | scout read -f xml "a-valid-date"
-
Guidance in building a .json config file with bash script.
For a clear and simple syntax, you can take a look at Scout.
-
Take that, Codable
I have been working myself on Scout to work on data when the format is not known at build time (for instance with a generic command line tool). And I have never had the tuple decoding requested. Although this might be useful for some people.
BackedCodable
-
Take that, Codable
From what I understand, you are not the only one trying those ideas. For instance BackedCodable uses property wrappers to use a custom strategy to decode a property. I myself had to implement a similar logic to decode a Plist configuration file where keys are sometime required only when another is not present. I similarly use property wrappers with mirroring.
What are some alternatives?
python-benedict - :blue_book: dict subclass with keylist/keypath support, built-in I/O operations (base64, csv, html, ini, json, pickle, plist, query-string, toml, xls, xml, yaml), s3 support and many utilities.
Scout - Surveillance Detection Scout: Your Lookout on Autopilot
jp - Command line interface to JMESPath - http://jmespath.org
ZippyJSON - A much faster version of JSONDecoder
jp - Validate and transform JSON with Bash
EVReflection - Reflection based (Dictionary, CKRecord, NSManagedObject, Realm, JSON and XML) object mapping with extensions for Alamofire and Moya with RxSwift or ReactiveSwift
simdjson - Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
SwiftyJSON - The better way to deal with JSON data in Swift.