aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Correct json/unmarshal.odingingerBill2022-11-111-1/+1
|
* Fix json marshal for mapsgingerBill2022-11-081-2/+2
|
* Correct reflection usage of mapsgingerBill2022-11-082-20/+14
|
* 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
|
* Add missing importgingerBill2022-09-141-1/+2
|
* Use `json` field tag for `json.marshal`gingerBill2022-09-141-1/+5
|
* Allow for ignored fields in struct for `json.unmarshal`gingerBill2022-09-141-1/+8
|
* 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-112-3/+6
|\
| * 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
| * 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.
| * 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
|/
* Rename to SJSON for the Simplified JSON notation variantgingerBill2022-06-162-3/+4
|
* Minor fixgingerBill2022-06-111-1/+1
|
* Merge functionality of `#maybe` with the standard 'union' functionalitygingerBill2022-05-231-1/+1
|
* [json/unmarshal] Fix quoted strings.Jeroen van Rijn2022-04-191-0/+6
|
* Revert "Fix unmarshal for escaped strings."Jeroen van Rijn2022-04-191-5/+0
| | | | This reverts commit 581255bf23af90b77bb2b6e2671b40e2b565754e.
* Fix unmarshal for escaped strings.Jeroen van Rijn2022-04-191-0/+5
|
* 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
* Fix 'unmarsal' typoPhil H2021-12-051-25/+25
|