Hierarchy

  • JSONADParser

Constructors

Properties

parsedResources: Resource<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 a JSON-AD array, returns array of Resources

    Parameters

    • jsonArray: unknown[]

    Returns Resource<any>[]

  • Parameters

    • object: JSONObject
    • resourceSubject: string = unknownSubject

    Returns 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