serialized 1.13.7

D XML/JSON serialization code generator based on boilerplate

To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


Build Status License Dub Version

Serialized is a library that automates encoding and decoding of D data types to JSON and XML.

It heavily relies on boilerplate to extract information about struct/class type layouts; as such automatic encoding/decoding can only be used with types that have a boilerplate constructor.

This library forks from Funkwerk's internal Utilities library. Hence while it is extensively tested, it also contains a moderate amount of legacy code. The important packages for automatic encoding and decoding are text.xml/json.Encode/Decode.

Serialized uses dxml for XML encoding/decoding and stdx_data_json for JSON encoding/decoding.

Basic usage: XML

import text.xml.Xml;

struct Element
  string attribute;



import text.xml.Decode;

const xmlText = `<Root attribute="Hello World"/>`;
const value = decode!Element(xmlText);

assert(value == Element("Hello World"));

Basic usage: JSON

import text.xml.Xml;

struct Element
  string attribute;



import text.json.Decode;

const jsonText = `{ "attribute": "Hello World" }`;
const value = decode!Element(jsonText);

assert(value == Element("Hello World"));


This project is made available under the Boost Software License 1.0.

  • Mathis Beer
boilerplate, dxml, prettyprint, dshould
1.13.7 2024-May-21
1.13.6 2023-Nov-09
1.13.5 2023-Oct-23
1.13.4 2023-Oct-20
1.13.3 2023-Oct-20
Show all 63 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 3 downloads this month

  • 539 downloads total

Short URL: