Skip to main content

Formats

Formats define how data is parsed on input and serialized on output. A Format is not the same as a file type — it's a schema that tells layline.io how to interpret incoming bytes and structure outgoing data.

Overview

Formats are the bridge between raw bytes and structured messages. When data enters a workflow through an Input Processor, the Format parses it into the internal Data Dictionary structure. When data exits through an Output Processor, the Format serializes it back to the target representation.

Unlike simple file type detection, Formats provide:

  • Schema-aware parsing — Define the exact structure of your data
  • Bidirectional support — Read and write using the same format definition
  • Data Dictionary integration — Parsed data becomes accessible throughout your workflow
  • Built-in testing — Test grammars and schemas against real data in edit mode

Available Formats

FormatDescription
ASN.1 FormatAbstract Syntax Notation One parsing for telecom, cryptography, and banking protocols. Supports BER/DER encoded data, X.509 certificates, and custom ASN.1 schemas.
Data Dictionary FormatCentralized field definitions and custom data structures. Define reusable types that can be referenced across multiple formats and workflows.
Formats IntroductionOverview of format concepts and general guidance on when to use each format type. Start here if you're new to working with formats.
Generic FormatFlexible grammar-based parsing for CSV, fixed-width, delimited text, binary formats, and custom structured data. Highly configurable with regex-based grammar language.
HTTP FormatHTTP request/response message parsing for REST APIs, webhooks, and HTTP-based integrations. Handles headers, query parameters, and body content.
XML FormatXML document parsing with XSD schema validation. Supports SOAP messages, configuration files, and XML-based APIs with namespace and XPath support.

How to Choose a Format

If your data is...Use this Format
Structured text (CSV, delimited, fixed-width)Generic Format
Hierarchical markup (XML, SOAP)XML Format
HTTP payloads (REST APIs, webhooks)HTTP Format
Telecom/banking protocols (TAP, CAMEL, X.509)ASN.1 Format
Shared across multiple formatsData Dictionary Format
You're unsure where to startFormats Introduction

Common Patterns

Format Selection by Data Type

Data TypeRecommended FormatNotes
CSV filesGeneric FormatDefine delimiters, headers, and field types in grammar
JSON payloadsGeneric FormatUse JSON grammar or HTTP Format for REST endpoints
XML filesXML FormatXSD validation ensures schema compliance
SOAP servicesXML FormatNative SOAP and WSDL support
REST APIsHTTP FormatPath and method definitions with request/response handling
Fixed-width recordsGeneric FormatDefine field positions and lengths precisely
Binary protocolsASN.1 or Generic FormatASN.1 for standard protocols, Generic for custom binary

Validation and Testing

Some formats support testing within the Configuration Center:

  1. Define your format grammar or schema
  2. Upload sample data files
  3. Verify parsing results in the preview panel
  4. Iterate without deploying to a cluster

This testing workflow applies to Generic Format, ASN.1 Format, and XML Format.


See Also