aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3215 from blob1807/json-better-enum-supportgingerBill2024-03-061-1/+15
|\ | | | | core:encoding/json Add support for writing enum value names
| * Apply suggestions from code review blob18072024-03-041-2/+2
| | | | | | | | | | Fixing spelling mistakes pointed out & fixed by layton. Co-authored-by: Laytan <laytanlaats@hotmail.com>
| * convert spaces to tabsblob18072024-03-041-1/+1
| |
| * Return underlining value instead of panicingblob18072024-03-041-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_anyblob18072024-03-011-34/+2
| |
| * Merge branch 'odin-lang:master' into json-better-enum-supportblob18072024-03-011-0/+3
| |\
| * | add all inter types to switchblob18072024-02-211-3/+27
| | |
| * | replace spaces with tabsblob18072024-02-211-19/+19
| | |
| * | add missing commablob18072024-02-211-1/+1
| | |
| * | Add better support for Enums in jsonblob18072024-02-211-1/+21
| | | | | | | | | | | | Can now output enum value's name instead of its underlineing value
| * | Revert json union fixblob18072024-02-211-9/+0
| | |
| * | Merge branch 'master' of https://github.com/blob1807/Odinblob18072024-02-211-1/+0
| |\ \
| * | | Fix bug https://github.com/odin-lang/Odin/issues/3173blob18072024-02-211-0/+9
| | | |
* | | | Fix #3173gingerBill2024-03-061-0/+5
| | | |
* | | | 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-063-7/+15
| |_|/ |/| |
* | | Begin work adding `bit_field`gingerBill2024-02-221-0/+3
| |/ |/|
* | 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-282-2/+2
|
* Merge pull request #2912 from ↵gingerBill2024-01-222-37/+121
|\ | | | | | | | | karl-zylinski/marshal-sort-maps-by-key-and-clone-value JSON: Option to sort marshaled maps before outputting + clone_value proc + small improvements
| * Made sure temp guard for sorting map keys in json marshal code ignores temp ↵Karl Zylinski2024-01-221-3/+3
| | | | | | | | allocator
| * Cleanup of json.clone_valueKarl Zylinski2023-11-011-4/+2
| |
| * Added temp allocator guard to json.marshal, in case we temp alloc when ↵Karl Zylinski2023-11-011-0/+3
| | | | | | | | sorting map kesy
| * Reversed order of sort_maps_by_key check in marshal.odin to make PR ↵Karl Zylinski2023-11-011-26/+26
| | | | | | | | comparison clearer.
| * Indentation fix.Karl Zylinski2023-11-011-3/+3
| |
| * JSON: Option to sort marshaled maps before outputting. Also added a ↵Karl Zylinski2023-11-012-38/+121
| | | | | | | | json.clone_value proc
* | 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
|/
* cleanup: remove unused importRickard Andersson2023-10-021-1/+0
|
* fix: guard against empty key value in `parse_object_body`Rickard Andersson2023-10-021-6/+10
|
* docs: add note about checking for alloc errorRickard Andersson2023-10-021-0/+2
|
* fix: use `runtime.map_insert` to not overallocateRickard Andersson2023-10-021-6/+4
|
* fix(json): return `.Out_Of_Memory` when out of memory on parseRickard Andersson2023-10-021-0/+6
| | | | | Previously this would silently simply not do anything and the object would be empty/incomplete when parsed instead.
* Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-301-5/+4
|
* Fix bug with index increment in `unquote_string`Abdelrahman Farid2023-09-191-1/+1
|
* json.marshal: Don't output spaces if pretty=falseRLGingerBiscuit2023-08-251-6/+6
|
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-1/+1
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-261-5/+5
| | | | `switch`/`for` statements
* fix #2550 json encoding should use surrogate pairs per RFC7159Laytan Laats2023-05-222-4/+13
|
* Fix typo in marshal.odinIkko Eltociear Ashimine2023-04-271-2/+2
| | | seperation -> separation
* Convert indentation to tabsjakubtomsu2023-04-141-6/+6
|
* Handle unmarshalling to json.Valuejakubtomsu2023-04-141-0/+6
|
* Fix for skip_alphanum in JSON tokenizer not checking if first character is ↵Karl Zylinski2023-04-051-1/+2
| | | | non-alphanum. This broke any single-character key when using SJSON specification in combination with not using quoted strings.
* TypoJeroen van Rijn2023-03-251-1/+1
|
* Update types.odinJeroen van Rijn2023-03-251-6/+6
| | | | Use `context.allocator := allocator` idiom.
* Add allocator parameter to `json.detroy_value`Igor Dreher2023-03-241-5/+5
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-101-0/+2
|
* Rename to `Type_Info_Parameters`gingerBill2023-02-081-1/+1
|
* Fix json.marshal for `map[string]string`gingerBill2023-01-241-0/+4
|