Table of Contents

Class AiCatalogParser

Namespace
SpecWorks.AiCatalog.Parsing
Assembly
SpecWorks.AiCatalog.dll

Parses JSON into SpecWorks.AiCatalog instances. Does NOT validate conformance — use AiCatalogValidator for that.

public static class AiCatalogParser
Inheritance
object
AiCatalogParser

Methods

Parse(Stream)

Parses a JSON stream into an SpecWorks.AiCatalog.

public static AiCatalog Parse(Stream stream)

Parameters

stream Stream

The 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

json string

The JSON string to parse.

Returns

AiCatalog

A parsed SpecWorks.AiCatalog instance.

Exceptions

AiCatalogParseException

Thrown when the JSON is malformed or has type mismatches.