| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Merge pull request #5882 from IllusionMan1212/custom-json-marshalling | Jeroen van Rijn | 2026-01-01 | 1 | -0/+79 |
| |\ | | | | | encoding/json: custom json (un)marshalling | ||||
| | * | Make custom JSON (un)marshalers more like core:fmt's | Jeroen van Rijn | 2025-12-10 | 1 | -26/+94 |
| | | | |||||
| | * | encoding/json: error handling for custom (un)marshallers | Hisham Aburaqibah | 2025-12-02 | 1 | -2/+2 |
| | | | |||||
| | * | encoding/json: custom json (un)marshalling | IllusionMan1212 | 2025-12-02 | 1 | -19/+30 |
| | | | |||||
| * | | [encoding/json] Fix Escapes When Marshalling | dozn | 2025-12-30 | 1 | -3/+3 |
| | | | | | | | | | | | | | Fixes https://github.com/odin-lang/Odin/issues/6060 and https://github.com/odin-lang/Odin/issues/6075 The boolean "true" was setting `html_safe` instead of `for_json`. Chalk one up for the "use enums instead of booleans" crowd. | ||||
| * | | Moved `first_iteration` up a couple lines so it makes sense readability-wise. | dozn | 2025-12-30 | 1 | -1/+1 |
| | | | |||||
| * | | Add JSON5/SJSON Comments When Marshalling | dozn | 2025-12-29 | 1 | -0/+26 |
| |/ | | | | | | Allows user-facing JSON5/SJSON to have comments explaining field usage. `json.Marshal_Options.pretty` must be enabled since we only use single-line comments (not to mention it wouldn't be terribly useful without `pretty` set anyways). We don't escape anything, so `\n` will display as "\n", but you're still able to enter in a proper newline character and it'll be displayed on multiple lines. | ||||
| * | Followup fix to #4895 | Courtney Strachan | 2025-10-05 | 1 | -3/+1 |
| | | |||||
| * | Merge branch 'odin-lang:master' into master | Courtney Strachan | 2025-10-06 | 1 | -8/+8 |
| |\ | |||||
| | * | Begin supporting `string16` across the core library | gingerBill | 2025-08-02 | 1 | -4/+4 |
| | | | |||||
| | * | Clarify `strconv.append_*` to `strconv.write_*` | Feoramund | 2025-06-05 | 1 | -4/+4 |
| | | | |||||
| * | | Fixed json null value parsing | Courtney Strachan | 2025-03-02 | 1 | -1/+7 |
| |/ | |||||
| * | encoding/json: marshal enumerated arrays to objects with key-value pairs | jkenda | 2025-02-01 | 1 | -3/+13 |
| | | |||||
| * | Remove relative types from json marshaller | gingerBill | 2024-11-14 | 1 | -6/+0 |
| | | |||||
| * | Merge pull request #3910 from VladPavliuk/json-add-int-key-map-support | gingerBill | 2024-07-14 | 1 | -33/+45 |
| |\ | | | | | 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 | 1 | -33/+45 |
| | | | | |||||
| * | | | Reduce the size of `runtime.Type_Info` | gingerBill | 2024-07-14 | 1 | -1/+1 |
| | |/ |/| | |||||
| * | | 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 | 1 | -2/+2 |
| |\ | |||||
| | * | Port `tests\core\encoding\json` | Jeroen van Rijn | 2024-06-02 | 1 | -2/+2 |
| | | | |||||
| * | | 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 | 1 | -1/+1 |
| | | |||||
| * | Update numerous package declaration names | gingerBill | 2024-04-18 | 1 | -1/+1 |
| | | |||||
| * | Add `json:"name,omitempty"` | gingerBill | 2024-04-10 | 1 | -8/+56 |
| | | |||||
| * | Allow for comma-separate json names `json:"name,flag"` | gingerBill | 2024-04-10 | 1 | -0/+1 |
| | | |||||
| * | correct newly found vets | Laytan Laats | 2024-04-03 | 1 | -11/+10 |
| | | |||||
| * | 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 |
| | | | | |||||
| | * | | 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 |
| | | | | |||||
| * | | | Fix #3250 | gingerBill | 2024-03-06 | 1 | -1/+3 |
| | |/ |/| | |||||
| * | | Begin work adding `bit_field` | gingerBill | 2024-02-22 | 1 | -0/+3 |
| |/ | |||||
| * | Replace `core:*` to `base:*` where appropriate | gingerBill | 2024-01-28 | 1 | -1/+1 |
| | | |||||
| * | Made sure temp guard for sorting map keys in json marshal code ignores temp ↵ | Karl Zylinski | 2024-01-22 | 1 | -3/+3 |
| | | | | | allocator | ||||
| * | Added temp allocator guard to json.marshal, in case we temp alloc when ↵ | Karl Zylinski | 2023-11-01 | 1 | -0/+3 |
| | | | | | sorting map kesy | ||||