Hierarchy

  • JSONADParser

Constructors

Properties

parseJsonADArray: any

Parses a JSON-AD array, returns array of Resources

parseJsonADResource: any
parseJsonAdResourceValue: any
parsedResources: any

Methods

  • Parses an array of JSON-AD objects containing resources. Returns a list of the resources in the array and a list of all the resources that were found including sub-resources.

    Parameters

    • jsonArray: unknown[]

    Returns [resourcesInArray: Resource<any>[], allParsedResources: Resource<any>[]]

  • Parses an JSON-AD object containing a resource. Returns the resource and a list of all the sub-resources it found.

    Parameters

    • jsonObject: JSONObject
    • Optional resourceSubject: string

    Returns [parsedRootResource: Resource<any>, allParsedResources: Resource<any>[]]

Generated using TypeDoc