HTTP, JSON, TextBuilder, and XML API Overview

With the API for Dynamics 365 Business Central you have HTTP, JSON, TextBuilder, and XML classes available for accessing services. The following table shows the classes that are available.

API reference

Class Description
HttpClient Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a Uniform Resource Identifier (URI).
HttpContent A base class representing an HTTP entity body and content headers.
HttpHeaders The HttpHeaders class contains a collection of headers and their values.
HttpRequestMessage Represents an HTTP request message.
HttpResponseMessage Represents an HTTP response message.
JsonArray JsonArray is a container for any well-formed JSON array. A default JsonArray contains an empty JSON array.
JsonObject JsonObject object is a container for any well-formed JSON object. A default JsonObject contains an empty JSON object.
JsonToken JsonToken object is a container for any well-formed JSON data. A default JsonToken contains the JSON value of NULL.
JsonValue JsonValue object is a container for any well-formed JSON object. A default JsonValue is set to the JSON value of NULL.
TextBuilder TextBuilder can performantly concatenate multiple bigger strings together.
XmlAttribute Represents an attribute.
XmlAttributeCollection Represents a collection of attributes associated with an XmlElement.
XmlCData Represents the CDATA section.
XmlComment Represents the content of an XML comment.
XmlDeclaration Represents the XML declaration node.
XmlDocument Represents an XML document. This class can be used to load, validate, edit, add, and position XML in a document.
XmlDocumentType Represents the document type declaration.
XmlElement Represents an element.
XmlNamespaceManager Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.
XmlNameTable Table of automized string object.
XmlNode Represents a single node in the XML document.
XmlNodeList Represents an ordered collection of nodes.
XmlProcessingInstruction Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document.
XmlText Represents the text content of an element or attribute.

See Also

Developing Extensions
Get Started with AL
AL Development Environment
Data Types and Methods in AL