| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix unmarshalling bit sets in json | Laytan Laats | 2025-03-22 | 1 | -2/+18 |
| | | | | | Fixes #4761 | ||||
| * | encoding/json: marshal enumerated arrays to objects with key-value pairs | jkenda | 2025-02-01 | 1 | -3/+13 |
| | | |||||
| * | Remove unnecessary string() conversion. | dozn | 2024-12-28 | 1 | -1/+1 |
| | | |||||
| * | Use Struct Tags For Embedded (with `using`) Structs When Unmarshalling JSON | dozn | 2024-12-28 | 1 | -1/+1 |
| | | | | A fix for https://github.com/odin-lang/Odin/issues/4539 | ||||
| * | fix #4536 - stack buffer overflow for size_of 0 types in struct unmarshal | Laytan Laats | 2024-12-06 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #4562 from dozn/patch-1 | gingerBill | 2024-12-06 | 1 | -3/+3 |
| |\ | | | | | Move Struct Field Zipping Outside of Loop | ||||
| | * | Move Struct Field Zipping Outside of JSON Token Loop | dozn | 2024-12-05 | 1 | -3/+3 |
| | | | |||||
| * | | Fix #4537 | gingerBill | 2024-12-05 | 1 | -0/+1 |
| |/ | |||||
| * | Fix #4549 | gingerBill | 2024-12-02 | 1 | -1/+1 |
| | | |||||
| * | fix unmarshal unhandled error (#4515) | o:tone | 2024-11-25 | 1 | -1/+1 |
| | | | | * fix unmarshal unhandled error | ||||
| * | Check for more errors in json.unmarshal | gingerBill | 2024-11-14 | 1 | -15/+34 |
| | | |||||
| * | Remove relative types from json marshaller | gingerBill | 2024-11-14 | 1 | -6/+0 |
| | | |||||
| * | encoding/json: fix leak when string is unmarshalled into non-string field | Laytan Laats | 2024-10-19 | 1 | -5/+10 |
| | | | | | Fixes #4391 | ||||
| * | unmarshal bitset ints like cbor does | jakubtomsu | 2024-09-04 | 1 | -1/+24 |
| | | |||||
| * | Allow json to unmarshal empty struct. | Jeroen van Rijn | 2024-07-21 | 1 | -2/+1 |
| | | |||||
| * | Merge pull request #3910 from VladPavliuk/json-add-int-key-map-support | gingerBill | 2024-07-14 | 2 | -41/+67 |
| |\ | | | | | Allow to `marshal` and `unmarshal` maps with int keys | ||||
| | * | Merge branch 'master' into json-add-int-key-map-support | VladPavliuk | 2024-07-14 | 1 | -0/+5 |
| | |\ | |||||
| | * | | Allow to `marshal` and `unmarshal` maps with int keys | VladPavliuk | 2024-07-13 | 2 | -41/+67 |
| | | | | |||||
| * | | | Reduce the size of `runtime.Type_Info` | gingerBill | 2024-07-14 | 2 | -2/+2 |
| | |/ |/| | |||||
| * | | Align ignore syntax of json tags with fmt, cbor | VladPavliuk | 2024-07-14 | 1 | -3/+6 |
| | | | |||||
| * | | Add support of `ignore` tag for `json.marshal` | VladPavliuk | 2024-07-13 | 1 | -1/+3 |
| |/ | |||||
| * | Fix loads of indentation issues with mixing spaces and tabs | gingerBill | 2024-06-29 | 1 | -4/+4 |
| | | |||||
| * | Merge branch 'odin-lang:master' into fix-omitempty-comma | korvahkh | 2024-06-13 | 3 | -41/+42 |
| |\ | |||||
| | * | Port `tests\core\encoding\json` | Jeroen van Rijn | 2024-06-02 | 3 | -41/+42 |
| | | | |||||
| * | | encoding/json: Fix struct marshal() emitting comma after omitted field | korvahkh | 2024-05-27 | 1 | -15/+17 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously: ```odin package main import "core:fmt" import "core:encoding/json" T :: struct { a: string `json:",omitempty"`, b: string, } main :: proc() { data, _ := json.marshal(T{b = "foo"}) fmt.println(string(data)) } ``` would output: ``` {,"b":"foo"} ``` which is not correct. Also cleaned up some whitespace while I'm at it. | ||||
| * | fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_set | IllusionMan1212 | 2024-05-25 | 1 | -2/+0 |
| | | |||||
| * | encoding/json: Properly marshal `#no_nil` unions | korvahkh | 2024-05-11 | 1 | -5/+8 |
| | | | | | | Previously the first variant of a `#no_nil` would always be output as `null`, and following variants would be treated as the wrong type. | ||||
| * | Fix `omitempty` in `json.marshal` | Feoramund | 2024-04-27 | 2 | -2/+2 |
| | | |||||
| * | Update numerous package declaration names | gingerBill | 2024-04-18 | 6 | -6/+6 |
| | | |||||
| * | Add `json:"name,omitempty"` | gingerBill | 2024-04-10 | 2 | -10/+60 |
| | | |||||
| * | Allow for comma-separate json names `json:"name,flag"` | gingerBill | 2024-04-10 | 2 | -1/+11 |
| | | |||||
| * | correct newly found vets | Laytan Laats | 2024-04-03 | 2 | -13/+12 |
| | | |||||
| * | Json: improved unmarshalling of `using _: T` fields. | Franz Höltermann | 2024-03-27 | 1 | -9/+41 |
| | | | | | | | | | | | | | | | | | | | | | | `using _: T` fields will now have their members unmarshalled to their parent types reflecting the new behaviour of json.marshall. Example: ```go A :: struct { using _: B, } B :: struct { field: string, } data := `{"field": "Hello World"}` a: A json.unmarshal_string(data, &a) ``` | ||||
| * | Json: fields on structs like 'using _: T' will now have T's fields | Franz Höltermann | 2024-03-26 | 1 | -14/+27 |
| | | | | | | | marshalled directly into the parent type without an '"_":{ ... }'. This seems like desirable behavior to me, since you can't access the fields with 'Parent_Type._.field' either. | ||||
| * | Merge pull request #3215 from blob1807/json-better-enum-support | gingerBill | 2024-03-06 | 1 | -1/+15 |
| |\ | | | | | core:encoding/json Add support for writing enum value names | ||||
| | * | Apply suggestions from code review | blob1807 | 2024-03-04 | 1 | -2/+2 |
| | | | | | | | | | | | Fixing spelling mistakes pointed out & fixed by layton. Co-authored-by: Laytan <laytanlaats@hotmail.com> | ||||
| | * | convert spaces to tabs | blob1807 | 2024-03-04 | 1 | -1/+1 |
| | | | |||||
| | * | Return underlining value instead of panicing | blob1807 | 2024-03-04 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | when no name it found. Renamed use_enum_value_names to use_enum_names it get the same point across & inline with the reflect procs | ||||
| | * | changed to use reflect.enum_name_from_value_any | blob1807 | 2024-03-01 | 1 | -34/+2 |
| | | | |||||
| | * | Merge branch 'odin-lang:master' into json-better-enum-support | blob1807 | 2024-03-01 | 1 | -0/+3 |
| | |\ | |||||
| | * | | add all inter types to switch | blob1807 | 2024-02-21 | 1 | -3/+27 |
| | | | | |||||
| | * | | replace spaces with tabs | blob1807 | 2024-02-21 | 1 | -19/+19 |
| | | | | |||||
| | * | | add missing comma | blob1807 | 2024-02-21 | 1 | -1/+1 |
| | | | | |||||
| | * | | Add better support for Enums in json | blob1807 | 2024-02-21 | 1 | -1/+21 |
| | | | | | | | | | | | | | Can now output enum value's name instead of its underlineing value | ||||
| | * | | Revert json union fix | blob1807 | 2024-02-21 | 1 | -9/+0 |
| | | | | |||||
| | * | | Merge branch 'master' of https://github.com/blob1807/Odin | blob1807 | 2024-02-21 | 1 | -1/+0 |
| | |\ \ | |||||
| | * | | | Fix bug https://github.com/odin-lang/Odin/issues/3173 | blob1807 | 2024-02-21 | 1 | -0/+9 |
| | | | | | |||||
| * | | | | Fix #3173 | gingerBill | 2024-03-06 | 1 | -0/+5 |
| | | | | | |||||
| * | | | | Zero `intrinsics.alloca` | gingerBill | 2024-03-06 | 1 | -2/+5 |
| | | | | | |||||
| * | | | | Use `intrinsics.alloca` rather than `context.temp_allocator` in ↵ | gingerBill | 2024-03-06 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | `json.unmarshal_object` | ||||