HTTP, JSON, TextBuilder, and XML API overview

AL has a number of data types available for accessing services. The following table shows the data types that are available to use in AL for Business Central.

API reference

ClassDescription
HttpClientProvides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a Uniform Resource Identifier (URI).
HttpContentA base class representing an HTTP entity body and content headers.
HttpHeadersThe HttpHeaders class contains a collection of headers and their values.
HttpRequestMessageRepresents an HTTP request message.
HttpResponseMessageRepresents an HTTP response message.
JsonArrayJsonArray is a container for any well-formed JSON array. A default JsonArray contains an empty JSON array.
JsonObjectJsonObject object is a container for any well-formed JSON object. A default JsonObject contains an empty JSON object.
JsonTokenJsonToken object is a container for any well-formed JSON data. A default JsonToken contains the JSON value of NULL.
JsonValueJsonValue object is a container for any well-formed JSON object. A default JsonValue is set to the JSON value of NULL.
TextBuilderTextBuilder can performantly concatenate multiple bigger strings together.
XmlAttributeRepresents an attribute.
XmlAttributeCollectionRepresents a collection of attributes associated with an XmlElement.
XmlCDataRepresents the CDATA section.
XmlCommentRepresents the content of an XML comment.
XmlDeclarationRepresents the XML declaration node.
XmlDocumentRepresents an XML document. This class can be used to load, validate, edit, add, and position XML in a document.
XmlDocumentTypeRepresents the document type declaration.
XmlElementRepresents an element.
XmlNamespaceManagerResolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.
XmlNameTableTable of automized string object.
XmlNodeRepresents a single node in the XML document.
XmlNodeListRepresents an ordered collection of nodes.
XmlProcessingInstructionRepresents a processing instruction, which XML defines to keep processor-specific information in the text of the document.
XmlTextRepresents the text content of an element or attribute.

Developing extensions
Get started with AL
AL development environment
Data types and methods in AL