aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fix minor issue with unmarshal for booleansgingerBill2021-11-131-0/+1
|
* Add json encoding test + fix enum not being set on success.Daniel Gavin2021-11-072-5/+6
|
* Fix json.marshal for MatrixgingerBill2021-10-201-0/+3
|
* Remove dead codegingerBill2021-10-021-17/+0
|
* Add alias for `MJSON` as `Bitsquid`gingerBill2021-10-021-0/+1
|
* Improve reflect.Type_Info_Complex supportgingerBill2021-09-291-1/+15
|
* Add more support for complex typesgingerBill2021-09-292-21/+29
|
* Clean up `json.marshal_to_writer`gingerBill2021-09-291-36/+12
|
* Remove `fmt` dependencygingerBill2021-09-292-4/+1
|
* Improve `json.marshal` error handling for `io.Writer`; Add docs for the ↵gingerBill2021-09-294-102/+224
| | | | different JSON specifications
* Improve MJSON handlinggingerBill2021-09-283-66/+83
|
* Support `json.Specification.MJSON`gingerBill2021-09-285-173/+201
| | | | https://bitsquid.blogspot.com/2009/10/simplified-json-notation.html
* Make it clear that integers are parsed separately from floatsgingerBill2021-09-281-7/+6
|
* Allow for `union{T}` like types in `json.unmarshal`gingerBill2021-09-251-54/+61
|