Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Repository files navigation


Getty

VersionZigAPI ReferenceBuild statusLicense

Overview

Getty JSON is a (de)serialization library for the JSON data format.

Installation

  1. Declare Getty JSON as a project dependency with zig fetch:

    zig fetch --save git+https://github.com/getty-zig/json.git#<COMMIT>
  2. Expose Getty JSON as a module in your project's build.zig:

    pubfnbuild(b: *std.Build) void {
    consttarget=b.standardTargetOptions(.{});
    constoptimize=b.standardOptimizeOption(.{});
    constopts= .{ .target=target, .optimize=optimize }; // 👈constjson_mod=b.dependency("json", opts).module("json"); // 👈constexe=b.addExecutable(.{
    .name="my-project",
    .root_source_file= .{ .path="src/main.zig" },
    .target=target,
    .optimize=optimize,
    });
    exe.root_module.addImport("json", json_mod); // 👈// ...
    }
  3. Import Getty JSON into your code:

    constjson=@import("json");

About

A (de)serialization library for JSON

Topics

Resources

Stars

79 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages