aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json/marshal.odin
Commit message (Collapse)AuthorAgeFilesLines
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Made sure temp guard for sorting map keys in json marshal code ignores temp ↵Karl Zylinski2024-01-221-3/+3
| | | | allocator
* 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-011-38/+94
| | | | json.clone_value proc
* Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-301-5/+4
|
* 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
|
* fix #2550 json encoding should use surrogate pairs per RFC7159Laytan Laats2023-05-221-3/+3
|
* Fix typo in marshal.odinIkko Eltociear Ashimine2023-04-271-2/+2
| | | seperation -> separation
* Rename to `Type_Info_Parameters`gingerBill2023-02-081-1/+1
|
* Fix json.marshal for `map[string]string`gingerBill2023-01-241-0/+4
|
* Fix json marshal for mapsgingerBill2022-11-081-2/+2
|
* Correct reflection usage of mapsgingerBill2022-11-081-14/+11
|
* Add missing importgingerBill2022-09-141-1/+2
|
* Use `json` field tag for `json.marshal`gingerBill2022-09-141-1/+5
|
* Fixed marshal_to_writer not supporting i128Despacito6969692022-08-261-0/+1
| | | Previously json.marshal(i128(696969)) would print 0 as there was no `u = i128(i)` initialization.
* Update marshal.odinMichael Kutowski2022-08-121-1/+1
|
* add new soa type, my bad wasnt on masterMichael Kutowski2022-08-121-0/+3
|
* switch styling and opt.spaces maxMichael Kutowski2022-08-121-59/+44
|
* Merge branch 'master' into pretty-json-2gingerBill2022-08-111-1/+4
|\
| * Add `#soa` pointer type to aid with refactoring to `#soa` data typesgingerBill2022-08-081-0/+3
| | | | | | | | | | | | | | | | a: #soa[16]Foo p := &a[6] #assert(type_of(p) == #soa^#soa[16]Foo) p^.x = 123 p.x = 123
| * Rename strings.Builder procedures to be consistent with the rest of the core ↵gingerBill2022-07-111-2/+2
| | | | | | | | library
* | add uint as hex optionMichael Kutowski2022-08-081-10/+21
| |
* | ...bad pasteMichael Kutowski2022-08-051-8/+17
| |
* | marshal output options with pretty option and other configMichael Kutowski2022-08-051-51/+214
|/
* Minor fixgingerBill2022-06-111-1/+1
|
* Utilize `union #shared_nil` in more placesgingerBill2022-03-241-3/+4
|
* `ODIN_ENDIAN` changed to an enum constant; `ODIN_ENUM_STRING` is the new ↵gingerBill2022-01-151-2/+2
| | | | string version of the old constant
* Add json encoding test + fix enum not being set on success.Daniel Gavin2021-11-071-2/+2
|
* Fix json.marshal for MatrixgingerBill2021-10-201-0/+3
|
* Remove dead codegingerBill2021-10-021-17/+0
|
* Add more support for complex typesgingerBill2021-09-291-11/+10
|
* Clean up `json.marshal_to_writer`gingerBill2021-09-291-36/+12
|
* Remove `fmt` dependencygingerBill2021-09-291-2/+0
|
* Improve `json.marshal` error handling for `io.Writer`; Add docs for the ↵gingerBill2021-09-291-96/+151
| | | | different JSON specifications
* Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-5/+5
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-155/+155
|
* Add multi pointers to coregingerBill2021-08-211-0/+3
|
* [Breaking] Change the layout `json.Value` to be a `union` rather than a ↵gingerBill2021-08-081-60/+58
| | | | `struct` of a `json.Pos` and the union
* Implement `f16` functionalitygingerBill2021-04-011-0/+1
|
* Remove `#opaque` typesgingerBill2021-02-231-3/+0
|
* Remove `bit_field` in type info, runtime, and general core librarygingerBill2021-02-191-28/+0
|
* vet all core packagesgingerBill2021-01-091-1/+0
|
* Integrate `package io` into core librarygingerBill2020-12-031-2/+3
|
* Remove unused variablegingerBill2020-11-251-2/+0
|
* Update package json for new map layout; Correct llvm-api includes for *nixgingerBill2020-11-251-4/+4
|
* Remove usage of `do` in core librarygingerBill2020-09-231-9/+15
|
* [REFLECTION BREAKING] Modify the internals of the `map` type to increase ↵gingerBill2020-09-071-5/+1
| | | | performance