diff options
| author | Lewis Gaul <Lewis@scphillips.com> | 2021-04-04 09:16:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-04 10:16:59 +0200 |
| commit | 74fd7107e85e19412c4b5d2c55d230844f22f372 (patch) | |
| tree | 17b0b5e32e04006df60a88a095a04741cdace67e /lib/std/json.zig | |
| parent | 6fc822a9481c0d2c8b37f26f41be603dd77ab5a4 (diff) | |
| download | zig-74fd7107e85e19412c4b5d2c55d230844f22f372.tar.gz zig-74fd7107e85e19412c4b5d2c55d230844f22f372.zip | |
Switch std.json to use an ordered hashmap
Diffstat (limited to 'lib/std/json.zig')
| -rw-r--r-- | lib/std/json.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig index 96ad066db3..7596631ea2 100644 --- a/lib/std/json.zig +++ b/lib/std/json.zig @@ -1234,7 +1234,7 @@ test "json.validate" { const Allocator = std.mem.Allocator; const ArenaAllocator = std.heap.ArenaAllocator; const ArrayList = std.ArrayList; -const StringHashMap = std.StringHashMap; +const StringArrayHashMap = std.StringArrayHashMap; pub const ValueTree = struct { arena: ArenaAllocator, @@ -1245,7 +1245,7 @@ pub const ValueTree = struct { } }; -pub const ObjectMap = StringHashMap(Value); +pub const ObjectMap = StringArrayHashMap(Value); pub const Array = ArrayList(Value); /// Represents a JSON value |
