Represents any JSON value, potentially containing other JSON values. A .float value may be an approximation of the original value. Arbitrary precision numbers can be represented by .number_string values.
Functions
fn jsonParse(allocator: Allocator, source: anytype, options: ParseOptions) ParseError(@TypeOf(load))!@This()
No documentation provided.
fn jsonParseFromValue(allocator: Allocator, source: Value, options: ParseOptions) !@This()
No documentation provided.
DocTests
test Value { var parsed = try parseFromSlice(Value, testing.allocator, "{\"anything\": \"goes\"}", .{}); defer parsed.deinit(); try testing.expectEqualSlices(u8, "goes", parsed.value.object.get("anything").?.string); }