A Swift library for parsing YAML and JSON documents into a type-safe Yaml enum.
Load YAML and JSON documents using Swift
Represents YAML/JSON values as a Swift enum (e.g., .bool, .int), ensuring compile-time safety and reducing runtime errors, as shown in the enum definition.
Allows easy access to nested data using subscript notation like value["key"][0], similar to native Swift collections, demonstrated in the README examples.
Provides optional properties such as .bool and .int for safe value extraction without manual casting, enhancing code readability and safety.
Load functions throw errors for invalid documents, enabling robust error management with try-catch blocks, as illustrated with parsing failures.
The library lacks built-in methods to convert the Yaml enum back to YAML or JSON strings, which limits its use for generating configuration files or API responses.
Focuses on core parsing; may not fully support YAML 1.2 specifications or complex constructs like merge keys, which could be a deal-breaker for specialized use cases.
Loads entire documents into memory at once, making it inefficient for very large files compared to streaming parsers that handle data incrementally.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.