This website requires JavaScript.
d93fc19d4a
add `readValue` implementations for case objects (#63 )
Etan Kissling
2023-08-19 12:28:06 +0200
5c265b25d8
add `{.raises.}` annotation to `writeValue`
Etan Kissling
2023-08-17 13:38:41 +0200
4f29e2eddb
typo in comment
Etan Kissling
2023-07-10 13:08:37 +0200
be875a8611
add `readValue` implementations for case objects
Etan Kissling
2023-07-10 13:06:54 +0200
bb53d49caf
missing raises (#61 )
Jacek Sieka
2023-07-06 09:13:29 +0200
8dbdd8ab45
missing raises
Jacek Sieka
2023-07-06 08:59:05 +0200
e6654ef5e9
avoid unused XDeclaredButNotUsed
tersec
2023-07-03 23:37:38 +0000
e32e8ad916
import std/[enumutils, typetraits] directly, not via stew/shims (#59 )
tersec
2023-06-11 12:14:50 +0000
1e878acae7
import std/[enumutils, typetraits] directly, not via stew/shims
tersec
2023-06-10 07:38:51 +0000
b068e1440d
make nimble file consistent with CI setup (#58 )
tersec
2023-06-10 05:15:58 +0000
6ecfe44b39
make nimble file consistent with CI setup
tersec
2023-06-09 23:51:33 +0000
86ee432dde
test with Nim version-2-0 in CI (#57 )
tersec
2023-06-08 19:23:20 +0000
1d0f8c8124
test with Nim version-2-0 in CI
tersec
2023-06-08 18:39:43 +0000
aa44ee61dd
works with nim devel
jangko
2023-06-05 15:23:36 +0700
3390fa3142
remove nim 1.2 and 1.4 support
jangko
2023-06-05 12:58:37 +0700
ed4440d881
use string value when encoding enums (#55 )
Etan Kissling
2023-05-27 11:42:08 +0200
9f299a3eff
disable int based parsing by default
Etan Kissling
2023-05-26 23:57:35 +0200
38448c0736
import robustness
Etan Kissling
2023-05-26 22:36:04 +0200
a477b247e3
cleanup
Etan Kissling
2023-05-26 17:00:35 +0200
d894255306
use string value when encoding enum with associated string
Etan Kissling
2023-05-26 15:02:54 +0200
b06b8ca4b1
update ubuntu to 20.04 in ci
jangko
2023-04-17 15:57:00 +0700
dc2cf52386
remove appveyor and travis script
jangko
2023-04-17 10:44:21 +0700
f64d55f7ff
fix missing annotation for nim 2.0
jangko
2023-04-17 08:06:09 +0700
a7d815ed92
normalise nimble, update CI (#52 )
Jacek Sieka
2022-11-24 13:49:34 +0100
556595f54c
normalise nimble, update CI
Jacek Sieka
2022-11-24 12:51:52 +0100
b42cd3c0d9
Make Reader.skipSingleJsValue part of the public API
Zahary Karadjov
2022-11-23 13:32:11 +0200
e5b18fb710
bugfix: a leading field with a 'none' value was producing an incorrect encoding (#50 )
Tanguy
2022-07-15 12:23:35 +0200
65e9ec30f4
bugfix: a leading field with a 'none' value was producing an incorrect encoding
Tanguy
2022-07-14 12:38:44 +0200
97cf184119
Rename some definitions to avoid clashes with stew/bitops2
Zahary Karadjov
2022-07-14 16:05:55 +0300
aca66fbd8e
bugfix: even the Option fields were mandatory under requireAllFields
Zahary Karadjov
2022-07-14 15:14:10 +0300
090749e577
Add setup files (#49 )
Ivan Yonchovski
2022-07-12 23:22:39 +0300
0d25f31f61
Add setup files
Ivan Yonchovski
2022-07-05 12:10:02 +0300
5a7f9a86cb
fix Nim 1.6 deprecation warning (#48 )
tersec
2022-07-01 17:48:29 +0000
6f305f9e46
fix Nim 1.6 deprecation warning
Dustin Brody
2022-07-01 16:30:09 +0000
dbe0f1ae51
Remove a string-to-cstring conversion warning on Nim 1.6
Zahary Karadjov
2022-06-19 13:06:02 +0300
bedbe6595a
Avoid overloading the separate classes of writeField ops
Zahary Karadjov
2022-06-19 12:38:44 +0300
95399caff3
Use latest nim-serialization; Add tests for useCustomSerialization
Zahary Karadjov
2022-06-18 13:34:04 +0300
cc5038e0e2
Add writer.stepwiseArrayCreation
Zahary Karadjov
2022-06-17 20:16:28 +0300
b9af0be99d
Don't write empty optional fields (#47 )
zah
2022-06-16 17:14:00 +0300
6a5d7f9da0
Don't write empty optional fields
Zahary Karadjov
2022-06-16 14:01:27 +0300
dc63c5995c
avoid string to cstring conversion
remove-cstring
narimiran
2022-06-13 11:03:24 +0200
d8a4c2c0ba
remove unnecessary string conversion
NoD
Dustin Brody
2022-06-09 09:39:58 +0000
5034fef8d0
Avoid a dangerous string to cstring conversion
Zahary Karadjov
2022-06-07 12:35:20 +0300
7d3d339e73
rm TaintedString (#43 )
tersec
2022-06-04 06:58:13 +0000
ff6ebb735c
rm TaintedString
Dustin Brody
2022-06-03 17:34:04 +0000
3509706517
Lazy JSON parser (#42 )
Jordan Hrycaj
2022-05-05 17:33:40 +0100
91f86a43c4
fix typo in unit test
Jordan Hrycaj
2022-05-05 13:08:15 +0100
be05812fbd
Add lazy parsing for customised string objects
Jordan Hrycaj
2022-05-04 19:00:23 +0100
b31bac87e8
activate lazy parsing in reader
Jordan Hrycaj
2022-05-03 12:33:01 +0100
2f3817b3f1
lazy numeric token parser
Jordan Hrycaj
2022-04-22 19:08:15 +0100
e0e29c0c08
need legacy flag for unit tests
Jordan Hrycaj
2022-05-03 11:52:25 +0100
09482f7e22
Proper error handling when parsed number exceeds uint64
Jordan Hrycaj
2022-04-21 15:47:39 +0100
8476dd32f8
Avoiding "high(variable)" constructs, use "high(uint64)" instead
Jordan Hrycaj
2022-04-14 10:02:57 +0100
a0dd2deea8
Proper error handling when parsing Uint256 numbers greater 2^53-1
Jordan Hrycaj
2022-04-13 16:18:05 +0100
074cd026e6
revert, just in case some action-at-a-distance thing is causing Unhandled exception: assignment to discriminant changes object branch; compile with -d:nimOldCaseObjects for a transition period [FieldError]
Dustin Brody
2022-04-07 10:51:02 +0000
216c29ca60
rm obsolete/unused/unmaintained CI AppVeyor and Travis scripts
Dustin Brody
2022-04-07 10:37:43 +0000
461fd03edb
Better default JsonReaderError.formatMsg implementation
Zahary Karadjov
2022-03-09 18:24:02 +0200
a12beabd2f
Revert "add missed exceptions (#36 )" (#39 )
Jacek Sieka
2022-02-21 10:29:04 +0100
0b6e923a02
Merge 5cc260208f
into ea965bbe00
Reuf Rujevic
2022-02-19 23:16:28 +0100
5cc260208f
Create Sjenica1
Reuf Rujevic
2022-02-19 23:16:19 +0100
ea965bbe00
silence spurious warning: 'ReaderType' is declared but not used
jangko
2021-09-18 15:05:10 +0700
0c3743e9be
Revert "add missed exceptions (#36 )"
Jacek Sieka
2022-02-18 10:34:16 +0100
cd044da00f
clean up imports/exports (#31 )
Jacek Sieka
2022-02-18 10:26:15 +0100
232710f5b2
add missed exceptions (#36 )
Antonis Geralis
2022-02-18 11:24:20 +0200
43eefeafd9
clean up imports/exports
Jacek Sieka
2021-08-18 21:34:33 +0200
85efabb0c4
Update json_serialization/reader.nim
Jacek Sieka
2022-02-18 10:09:17 +0100
2f22f7a4f3
make it compile
Antonis Geralis
2022-02-07 15:54:17 +0200
1906185e3d
first attempt for a JSON fuzzer
Antonis Geralis
2022-02-07 15:17:35 +0200
1e13d3a0e6
advance the lexer when encountering -, +
Antonis Geralis
2022-02-07 12:39:14 +0200
c4746f6652
add missed exceptions
Antonis Geralis
2022-02-07 12:09:36 +0200
4b8f487d2d
CI: test with multiple Nim versions (#35 )
Ștefan Talpalaru
2022-01-06 20:10:03 +0100
d51ec2e782
CI: test with multiple Nim versions
Ștefan Talpalaru
2022-01-06 19:37:12 +0100
010aa238cf
Enable styleCheck:usages
Tanguy
2021-12-15 10:34:49 +0100
00b68ef831
Enable styleCheck:usages
Tanguy
2021-12-15 10:34:49 +0100
c5f0e2465e
Add gcsafe and raises annotations to the formatMsg methods (#33 )
Kim De Mey
2021-11-18 15:24:59 +0100
88adf5e27a
Add gcsafe and raises annotations to the formatMsg methods
kdeme
2021-11-18 12:01:26 +0100
297496d703
NULL cstrings are encoded to JS null
Zahary Karadjov
2021-11-01 18:59:12 +0200
4f3775ddf4
Add JsonReader.init(..., requireAllFields: bool)
Zahary Karadjov
2021-08-11 20:00:34 +0300
652099a959
CI: refactor Nim compiler caching (#28 )
Ștefan Talpalaru
2021-06-03 02:16:30 +0200
62d5241b1b
CI: refactor Nim compiler caching
Ștefan Talpalaru
2021-05-28 00:53:42 +0200
fe8a82ca76
Adapt to the latest nim-serialization API
Zahary Karadjov
2021-03-19 04:13:55 +0200
706eb5740e
Add support for serialization flavors
Zahary Karadjov
2021-03-18 13:01:06 +0200
7999d25225
Merge pull request #24 from status-im/github_action
andri lim
2020-12-26 11:35:30 +0700
5d36ea5900
fixes test
jangko
2020-12-24 16:32:59 +0700
dd2a6d8ac3
add github action
jangko
2020-12-24 16:04:58 +0700
cedf0c5f0c
Add a low-level API for controlling the state of the Writer when writing to the output stream manually
Zahary Karadjov
2020-11-27 19:42:33 +0200
32f75d93b0
Add support for TaintedString
Zahary Karadjov
2020-11-12 21:00:10 +0200
3b0c9eafa4
Bugfix: incorrect logic in the parsing of comments fails to detect EOF properly
Zahary Karadjov
2020-10-09 19:32:25 +0300
1dccd4b2ef
Another readObjectFields convenience helper
Zahary Karadjov
2020-08-02 20:15:44 +0300
f011bea54b
Add a helper for specifying enums types that must be serialized as strings
Zahary Karadjov
2020-08-02 20:14:59 +0300
ec374f26ca
Break reader.readObject into smaller reusable pieces
Zahary Karadjov
2020-08-02 13:22:24 +0300
9ca88fdcd4
Turn a potential assertion failure into a syntax error
Zahary Karadjov
2020-08-01 19:28:36 +0300
d5eb9427b8
Serialization of JsonNode fields
Zahary Karadjov
2020-07-24 22:49:30 +0300
25adda6f3f
Alternative implementation that doesn't require rewind points
wip-json-string
Zahary Karadjov
2020-07-21 21:59:16 +0300
4d8145c67b
WIP Deserialization of the JsonString literal fields
Zahary Karadjov
2020-07-17 23:58:02 +0300
1cf51931f1
Implement forward-compatible deserialization
Zahary Karadjov
2020-06-30 22:11:56 +0300
463a0cf1b7
Address review comments; Passing test suite
Zahary Karadjov
2020-06-22 17:42:50 +0300
6e92113a06
Stricter error handling
Zahary Karadjov
2020-06-16 01:03:00 +0300
c478b7bbba
Proper JSON serialization for IP addresses
Zahary Karadjov
2020-06-05 17:06:48 +0300
4f2aa8b5cb
Make the JsonString type more accessible
Zahary Karadjov
2020-06-01 21:15:22 +0300