aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json.zig
AgeCommit message (Collapse)Author
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-28std.Io: delete GenericWriterAndrew Kelley
2025-08-13std.io.Writer.Allocating: rename getWritten() to written()Isaac Freund
This "get" is useless noise and was copied from FixedBufferWriter. Since this API has not yet landed in a release, now is a good time to make the breaking change to fix this.
2025-07-21std.json: delete dead APIAndrew Kelley
2025-07-19std.json: update to new I/O APIAndrew Kelley
also do a little bit of namespace cleanup
2025-07-07std.io: deprecated Reader/Writer; introduce new APIAndrew Kelley
2024-05-03Delete compile errors for deprecated declsRyan Liptak
2023-10-25x86_64: pass more testsJacob Young
* 128-bit integer multiplication with overflow * more instruction encodings used by std inline asm * implement the `try_ptr` air instruction * follow correct stack frame abi * enable full panic handler * enable stack traces
2023-10-23x86_64: implement enough to pass unicode testsJacob Young
* implement vector comparison * implement reduce for bool vectors * fix `@memcpy` bug * enable passing std tests
2023-10-22Revert "Revert "Merge pull request #17637 from jacobly0/x86_64-test-std""Jacob Young
This reverts commit 6f0198cadbe29294f2bf3153a27beebd64377566.
2023-10-22Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"Andrew Kelley
This reverts commit 0c99ba1eab63865592bb084feb271cd4e4b0357e, reversing changes made to 5f92b070bf284f1493b1b5d433dd3adde2f46727. This caused a CI failure when it landed in master branch due to a 128-bit `@byteSwap` in std.mem.
2023-10-21x86_64: disable failing tests, enable test-std testingJacob Young
2023-10-21x86_64: fix bugs and disable erroring testsJacob Young
2023-09-13std.json: add fmt function (#17055)Jonathan Marler
Adds std.json.fmt which returns a std.fmt Formatter that formats any given value using std.json.stringify.
2023-07-21std.json: Unify stringify and writeStream (#16405)Josh Wolfe
2023-07-09std.json: add generic hash map that parses/stringifies with arbitrary string ↵Josh Wolfe
keys (#16366) * expose innerParseFromValue
2023-07-08std.json: expose innerParse and add .allocate option (#16312)Garrett
2023-06-25std: re-pub new json symbols in json.zigJosh Wolfe
2023-06-19std: Support user-provided jsonParse method. Unify json.Parser and ↵Josh Wolfe
json.parse* (#15705)
2023-05-13std: Rewrite low-level json api to support streaming (#15602)Josh Wolfe
2023-05-07convert s[start..start+len] to s[start..][0..len]dweiller
2023-04-30std: fix a bunch of typosLinus Groh
The majority of these are in comments, some in doc comments which might affect the generated documentation, and a few in parameter names - nothing that should be breaking, however.
2023-04-28update codebase to use `@memset` and `@memcpy`Andrew Kelley
2023-04-26std: @Vector support for std.json.parseJanne Hellsten
2023-04-07std.json: allow returning custom errors from custom stringifymateusz
2023-03-21std.json: support tuplesMarcus Ramse
2023-03-08std.json.stringify: support [*:0]const u8r00ster91
2023-03-08std.json.parseInternal: use switches instead of ifsr00ster91
2023-02-18update std lib and compiler sources to new for loop syntaxAndrew Kelley
2023-02-13Merge pull request #14548 from schmee/std-json-fixesVeikka Tuominen
Some std.json fixes
2023-02-13std: support deserialising JSON strings containing escape seqences into ↵Leo Constantinides
sentinel slice
2023-02-04std.json: don't free struct default valuesJohn Schmidt
Closes https://github.com/ziglang/zig/issues/9509.
2023-02-04std.json: avoid dangling pointers in ValueTreeJohn Schmidt
Closes https://github.com/ziglang/zig/issues/5229.
2023-02-04std.json: fix parsing of structs with default value const pointersJohn Schmidt
2023-01-28std.json: check output and source lengths in `std.json`Jon-Eric Cook
2022-12-17std.builtin: rename Type.UnionField and Type.StructField's field_type to typer00ster91
2022-12-06remove most conditional compilation based on stage1Andrew Kelley
There are still a few occurrences of "stage1" in the standard library and self-hosted compiler source, however, these instances need a bit more careful inspection to ensure no breakage.
2022-11-29std.mem.Allocator: allow shrink to failAndrew Kelley
closes #13535
2022-09-20Sema: check pointer qualifiers before implicit castVeikka Tuominen
Closes #12881
2022-07-24std.json: expose encodeJsonString and encodeJsonStringCharsJonathan Marler
Expose 2 functions from std.json. These functions take a slice of bytes and forward them to a given writer as a JSON encoded string. The use case I have for this is in a custom JsonStringWriter. This writer takes data and automatically encodes it as JSON string characters and forwards it to an underlying writer. I use this JsonStringWriter in combination with std.fmt.format to go directly from a format string/arg pair to JSON. This way I don't have to format my string into a separate buffer first and encode it afterwards, which avoids the need to create a temporary buffer to hold the unencoded but formatted string.
2022-07-23std.json: Fix parsing of large numbersominitay
Numbers greater than about 2^53 are encoded as strings in JSON. std.json.parseInternal previously errored out in this condition.
2022-07-07std.json: move tests to json/test.zig fileAndrew Kelley
This accomplishes two things: * Works around #8442 by putting stage1-specific logic in to disable all the std.json tests. * Slightly reduces installation size of zig since std lib files ending in "test.zig" are excluded from being installed.
2022-06-29std.json: Support disabling indent (#11823)May B
Newline Delimited JSON (ndjson) expect compact json without newline inside its content Add None to StringfyOptions.indent and move newline writeByte inside StringfyOptions.outputIndent
2022-06-03std: update tests to stage2 semanticsVeikka Tuominen
2022-05-10std.json stringify fix object keys are always is stringsAndreas Reischuck
* extracted outputJsonString to avoid code duplication
2022-05-10std.json add stringify struct with string as arrayOfekShochat
2022-04-27std: use float builtins instead of std.mathAndrew Kelley
2022-03-08std.json: correctly handle sentinel terminated slicesBenjamin San Souci
2022-03-08deprecated TypeInfo in favor of TypeJonathan Marler
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-02-13std.json: fix compile error for comptime fieldssharpobject
This is covered by an existing test which was already failing.