• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API
Search Results for

    Class JsonApiDocument

    Represents a JSON API Document returned from a JSON API REST endpoint.

    Inheritance
    System.Object
    JsonValue
    JsonObject
    JsonApiDocument
    Implements
    System.ICloneable
    Inherited Members
    JsonObject.ParseJson(String)
    JsonObject.ParseJson(Byte[])
    JsonObject.Parse(String)
    JsonObject.Parse(Byte[])
    JsonObject.HasOwnProperty(String)
    JsonObject.GetOwnPropertyNames()
    JsonObject.SetIfNotEmpty(String, JsonValue)
    JsonObject.GetIfNotEmpty(String)
    JsonObject.GetIfNotNaN<T>(String, T)
    JsonObject.GetBool(String)
    JsonObject.GetDateIfNotEmpty(String)
    JsonObject.GetUuidIfNotEmpty(String)
    JsonObject.SetUuidIfNotEmpty(String, Guid)
    JsonObject.OnAfterParseObject()
    JsonValue.Null
    JsonValue.Undefined
    JsonValue.JsonType
    JsonValue.Value
    JsonValue.Item[String]
    JsonValue.Item[Int32]
    JsonValue.ValueAsString
    JsonValue.ValueAsNumber
    JsonValue.ValueAsBoolean
    JsonValue.Load(TextReader)
    JsonValue.Load(Stream)
    JsonValue.Load(String)
    JsonValue.Save(TextWriter)
    JsonValue.Save(Stream)
    JsonValue.Save(String)
    JsonValue.ToByteArray()
    JsonValue.ToString()
    JsonValue.Clone()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Subsembly.Json
    Assembly: Subsembly.Json.dll
    Syntax
    public class JsonApiDocument : JsonObject, ICloneable

    Constructors

    JsonApiDocument(IJsonApiObjectFactory)

    Declaration
    public JsonApiDocument(IJsonApiObjectFactory aObjectFactory)
    Parameters
    Type Name Description
    IJsonApiObjectFactory aObjectFactory

    Optional object factory that will be used the create the resource objects that may be contained in this document. If this is null, then a plain JsonObject will be used for resource objects.

    Properties

    DataAsArray

    Provides the JSON API document data as a JSON array.

    Declaration
    public JsonApiResourceObject[] DataAsArray { get; }
    Property Value
    Type Description
    JsonApiResourceObject[]
    Remarks

    If the actual JSON API document data is a JSON array, then this property provides that array data. If the actual JSON API document data is a single JSON object, then this property returns an array containing that single object. In all other cases an empty array is returned. null.

    DataAsObject

    If the JSON API document data is represented as single JSON object, then this property provides that object.

    Declaration
    public JsonApiResourceObject DataAsObject { get; }
    Property Value
    Type Description
    JsonApiResourceObject
    Remarks

    If the JSON API document data is a JSON array, then this property is null.

    DataCount

    Returns the number of resource objects provided through the "data" field.

    Declaration
    public int DataCount { get; }
    Property Value
    Type Description
    System.Int32

    Errors

    Declaration
    public JsonApiErrorObjects Errors { get; }
    Property Value
    Type Description
    JsonApiErrorObjects

    Included

    Declaration
    public JsonApiResourceObjects Included { get; }
    Property Value
    Type Description
    JsonApiResourceObjects

    JsonApi

    Declaration
    public JsonApiVersionObject JsonApi { get; }
    Property Value
    Type Description
    JsonApiVersionObject

    Meta

    Declaration
    public JsonObject Meta { get; }
    Property Value
    Type Description
    JsonObject

    Version

    Provides the JSON API version from the JsonApi object.

    Declaration
    public string Version { get; }
    Property Value
    Type Description
    System.String
    Remarks

    If there is no JsonApi object, then the default "1.0" is returned.

    Methods

    FindIncluded(String, String)

    Declaration
    public JsonApiResourceObject FindIncluded(string sType, string sId)
    Parameters
    Type Name Description
    System.String sType
    System.String sId
    Returns
    Type Description
    JsonApiResourceObject

    OnCreateChildArray(String)

    Declaration
    protected override JsonArray OnCreateChildArray(string sFieldName)
    Parameters
    Type Name Description
    System.String sFieldName
    Returns
    Type Description
    JsonArray
    Overrides
    JsonObject.OnCreateChildArray(String)

    OnCreateChildObject(String)

    Declaration
    protected override JsonObject OnCreateChildObject(string sFieldName)
    Parameters
    Type Name Description
    System.String sFieldName
    Returns
    Type Description
    JsonObject
    Overrides
    JsonObject.OnCreateChildObject(String)
    Remarks

    The default implementation creates a JsonApiResourceObject for the "data" object. An override may create a more specialized type derived from JsonApiResourceObject.

    The default implementation creates a plain JsonObject for the "meta" object. An override may create a more spezialized type.

    Implements

    System.ICloneable
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH