Skip to content

fominvic81/json2zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2zig

Generate zig types from json.

Example:

Input:

{
    "people": [
        {
            "first_name": "Gordon",
            "last_name": "Freeman",
            "age": 27
        },
        {
            "first_name": "Bob",
            "email": "bob@example.com"
        }
    ]
}

Output:

struct {
    people: []struct {
        first_name: []const u8,
        email: ?[]const u8,
        last_name: ?[]const u8,
        age: ?i64,
    },
}

Building

Zig version 0.15.1.

zig build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages