summary refs log tree commit diff stats
path: root/tests/stdlib/tjsonmacro.nim
Commit message (Collapse)AuthorAgeFilesLines
* Extent json.to testing to VM, add workrounds for VM bugs. (#12493)Arne Döring2019-10-281-116/+122
| | | fixes #12479
* Refactor json macro (#12391)Arne Döring2019-10-171-1/+41
| | | | | | | | * closes #12316 * make tjsonmacro work at js target * closes #12289 * closes #11988 * also fixed gdb related stuff
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* fixes #12015 by also checking kind of `typeNode` (#12016)Vindaar2019-08-271-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | * fixes #12015 by also checking kind of `typeNode` If a tuple field is aliased it'll appear the same as a ref type in a call to `getType` if only for the kind of the resulting `NimNode` is checked (that is a `nnkBracketExpr`) * fix test case due to #12017 and add more realistic test case Adds an additional test case, which includes generics and is closer to the real failure I encountered * remove previous fix and fix differently after all The previous fix was incomplete, because it failed for generics. Note that the `of "tuple"` is not actually needed, the `nnkBracketExpr` branch in the `else` branch would catch it too, but I decided to introduce it for clarity. However, the latter is actually needed, because it seems for aliases of `seq` we end up in it. * update comment about global `%` proc in json test
* fixes json.nim regressionAndreas Rumpf2019-03-291-4/+0
|
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-0/+40
|
* json: support tuple (#10010)Timothee Cour2019-01-161-0/+4
|
* lots of small changesArne Döring2018-12-111-1/+1
|
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+0
|
* make more tests greenAndreas Rumpf2018-08-131-2/+2
|
* fixes #8037, json.to support object with distinct types (#8086)andri lim2018-07-191-3/+102
| | | | | | * add distinct types to json 'to' macro * fix json 'to' macro and add more test
* Fixes #6902Abhishek Kapatkar2018-03-301-0/+15
|
* Fixes #7433.Dominik Picheta2018-03-291-0/+15
|
* Fix `json.to` for types with generic parametersOscar Nihlgård2018-02-111-1/+8
|
* Support all int, uint and float variants in json.to macro.Dominik Picheta2017-11-301-1/+27
|
* Fix infinite recursion when using json.to on ref with cycle.Dominik Picheta2017-11-301-3/+1
|
* Implement support for JsonNode in json.to.Dominik Picheta2017-11-301-1/+18
|
* Implement Table/OrderedTable support for json.to macro.Dominik Picheta2017-11-301-2/+25
|
* Implement support for Option[T] in json.to macro. Fixes #5848.Dominik Picheta2017-11-301-2/+23
|
* Fixes #6604. Rejects unnamed tuples with error.Dominik Picheta2017-11-301-1/+21
|
* Fixes #6095.Dominik Picheta2017-11-301-1/+17
|
* Fixes #5856. Code based on @loloiccl's PR (#5879).Dominik Picheta2017-11-301-1/+14
|
* [JSON] getBVal -> getBool; getFNum -> getFloatDaniil Yarancev2017-10-141-2/+2
|
* Fixes #5761.Dominik Picheta2017-05-171-1/+21
|
* Add test for previous commit.Dominik Picheta2017-04-171-1/+10
|
* Fixes `null` handling for object refs in JSON unmarshal macro.Dominik Picheta2017-04-171-2/+11
|
* Fix JSON macro bug with ref objects.Dominik Picheta2017-04-171-3/+29
|
* Implement support for enum fields in JSON macro.Dominik Picheta2017-04-091-1/+17
|
* Document `to` macro in JSON and add example.Dominik Picheta2017-04-091-0/+26
|
* Implements else branch for JSON unmarshalling of object variants.Dominik Picheta2017-04-091-2/+36
|
* Improve error messages and add tests for the JSON macro.Dominik Picheta2017-04-081-25/+75
|
* Support int, string and bool fields in unmarshal json macro.Dominik Picheta2017-04-081-21/+40
|
* First implementation of JSON unmarshal macro.Dominik Picheta2017-04-081-0/+40