Class AiCatalogParser
Parses JSON into SpecWorks.AiCatalog instances. Does NOT validate conformance — use AiCatalogValidator for that.
public static class AiCatalogParser
- Inheritance
-
objectAiCatalogParser
Methods
Parse(Stream)
Parses a JSON stream into an SpecWorks.AiCatalog.
public static AiCatalog Parse(Stream stream)
Parameters
streamStreamThe stream containing JSON.
Returns
- AiCatalog
A parsed SpecWorks.AiCatalog instance.
Exceptions
- AiCatalogParseException
Thrown when the JSON is malformed or has type mismatches.
Parse(string)
Parses a JSON string into an SpecWorks.AiCatalog.
public static AiCatalog Parse(string json)
Parameters
jsonstringThe JSON string to parse.
Returns
- AiCatalog
A parsed SpecWorks.AiCatalog instance.
Exceptions
- AiCatalogParseException
Thrown when the JSON is malformed or has type mismatches.