aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/jv/stringify.zig
blob: b553c6b375ed20ecdcab3f391fb6785ccf5d0b28 (plain)
1
2
3
4
5
6
const std = @import("std");
const Value = @import("./value.zig").Value;

pub fn stringify(allocator: std.mem.Allocator, value: Value) ![]u8 {
    return try std.json.Stringify.valueAlloc(allocator, value, .{ .whitespace = .indent_2 });
}