Report a bug
If you spot a problem with this page, click here to create a Github issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

asdf

ASDF Package

Authors:
Ilya Yaroshenko
License:
MIT
Examples:
import std.stdio;
import std.algorithm;
import asdf;

size_t femalesCount()
{
	auto val = Asdf("Female");
	return
		File("data.jsonl")
		// Use at least a size of file system block, which is usually equals to 4096 bytes.
		.byChunk(4096)
		// Use approximate size of an object.
		// Size of the internal buffer would be extended automatically
		.parseJsonByLine
		.filter!(object => object["gender"] == val)
		.count;
}
  • public import asdf.asdf;
  • public import asdf.jsonparser;
  • public import asdf.serialization;
  • public import asdf.transform;