aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json/unmarshal.odin
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5882 from IllusionMan1212/custom-json-marshallingJeroen van Rijn2026-01-011-3/+85
|\ | | | | encoding/json: custom json (un)marshalling
| * Make custom JSON (un)marshalers more like core:fmt'sJeroen van Rijn2025-12-101-35/+106
| |
| * encoding/json: error handling for custom (un)marshallersHisham Aburaqibah2025-12-021-2/+2
| |
| * encoding/json: custom json (un)marshallingIllusionMan12122025-12-021-25/+36
| |
* | [encoding/json] Allow Unmarshalling to `rune`dozn2025-12-301-0/+9
|/ | | | Fixes https://github.com/odin-lang/Odin/issues/6061
* encoding/json: clone unquoted stringsNeirokan2025-11-061-14/+16
|
* Change `is_utf16` field to `encoding` and use an enumgingerBill2025-08-051-1/+1
|
* Begin supporting `string16` across the core librarygingerBill2025-08-021-1/+3
|
* Merge pull request #4944 from dozn/masterLaytan2025-05-151-8/+14
|\ | | | | [core:encoding/json] When Unmarshalling, Only Match On Struct Tags If Present
| * [core:encoding/json] When Unmarshalling, Only Match Struct Tags If Presentdozn2025-03-171-8/+14
| |
* | fix unmarshalling bit sets in jsonLaytan Laats2025-03-221-2/+18
|/ | | | Fixes #4761
* Remove unnecessary string() conversion.dozn2024-12-281-1/+1
|
* Use Struct Tags For Embedded (with `using`) Structs When Unmarshalling JSONdozn2024-12-281-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 unmarshalLaytan Laats2024-12-061-1/+1
|
* Move Struct Field Zipping Outside of JSON Token Loopdozn2024-12-051-3/+3
|
* fix unmarshal unhandled error (#4515)o:tone2024-11-251-1/+1
| | | * fix unmarshal unhandled error
* Check for more errors in json.unmarshalgingerBill2024-11-141-15/+34
|
* encoding/json: fix leak when string is unmarshalled into non-string fieldLaytan Laats2024-10-191-5/+10
| | | | Fixes #4391
* unmarshal bitset ints like cbor doesjakubtomsu2024-09-041-1/+24
|
* Allow json to unmarshal empty struct.Jeroen van Rijn2024-07-211-2/+1
|
* Merge pull request #3910 from VladPavliuk/json-add-int-key-map-supportgingerBill2024-07-141-8/+22
|\ | | | | Allow to `marshal` and `unmarshal` maps with int keys
| * Allow to `marshal` and `unmarshal` maps with int keysVladPavliuk2024-07-131-8/+22
| |
* | Reduce the size of `runtime.Type_Info`gingerBill2024-07-141-1/+1
|/
* Fix `omitempty` in `json.marshal`Feoramund2024-04-271-1/+1
|
* Update numerous package declaration namesgingerBill2024-04-181-1/+1
|
* Add `json:"name,omitempty"`gingerBill2024-04-101-2/+4
|
* Allow for comma-separate json names `json:"name,flag"`gingerBill2024-04-101-1/+10
|
* correct newly found vetsLaytan Laats2024-04-031-2/+2
|
* Json: improved unmarshalling of `using _: T` fields.Franz Höltermann2024-03-271-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) ```
* Zero `intrinsics.alloca`gingerBill2024-03-061-2/+5
|
* Use `intrinsics.alloca` rather than `context.temp_allocator` in ↵gingerBill2024-03-061-5/+8
| | | | `json.unmarshal_object`
* Fix #3250gingerBill2024-03-061-0/+6
|
* remove return statement from case Type_Info_Enumerated_Array, as it causes ↵Kay2024-02-121-1/+0
| | | | early exit in JSON unmarshalling.
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Enforce naming the parameters with `builtin.quaternion` to reduce confusiongingerBill2024-01-051-3/+3
|
* encoding/json: try to unmarshal into union variantsLaytan Laats2024-01-031-10/+27
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-261-5/+5
| | | | `switch`/`for` statements
* Convert indentation to tabsjakubtomsu2023-04-141-6/+6
|
* Handle unmarshalling to json.Valuejakubtomsu2023-04-141-0/+6
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-101-0/+2
|
* Correct json/unmarshal.odingingerBill2022-11-111-1/+1
|
* Correct reflection usage of mapsgingerBill2022-11-081-6/+3
|
* else statement to allow skipping unused struct fieldsMichael Kutowski2022-09-301-9/+7
|
* Correct json.unmarshal for `map`sgingerBill2022-09-211-2/+2
|
* Update json/unmarshal.odin for the new `runtime.__dynamic_map_set`gingerBill2022-09-171-8/+6
|
* Allow for ignored fields in struct for `json.unmarshal`gingerBill2022-09-141-1/+8
|
* Fix bug unmarshalling JSON with assertions disabledWilliam Roe2022-07-281-2/+2
| | | | | | | | | When asserts are disabled, code within the assert isn't run. Having expect_token within an assert means that the state of the Parser is mutated when asserts are run, but not when they aren't. There's already a wrapper procedure for this pattern, which I have reused here.
* Merge functionality of `#maybe` with the standard 'union' functionalitygingerBill2022-05-231-1/+1
|
* Fix 'unmarsal' typoPhil H2021-12-051-25/+25
|
* Fix minor issue with unmarshal for booleansgingerBill2021-11-131-0/+1
|