119 Commits

Author SHA1 Message Date
Steve Hanson
f89e75af75 remove C++ 11 std::string to_string() syntax 2021-01-29 11:08:01 +00:00
Steve Hanson
6f3cccd6e1 remove debug std::cout, handle empty error object in example 2021-01-28 14:21:36 +00:00
Steve Hanson
05e7b33977 code and tests 2021-01-28 12:11:43 +00:00
Milo Yip
dfbe1db9da
Merge pull request #1502 from ylavic/compilation_fixes
Compilation fixes
2019-12-03 09:51:05 +08:00
Mikhail Boldyrev
8973b279cf fixed Uint case in docs 2019-08-23 07:44:29 +03:00
ylavic
b4538b5363 Fix compilation of sortkeys.cpp with MSVC 2013 (hopefully). 2019-05-09 13:37:49 +02:00
Milo Yip
1ede098e90 Workaround of sortkeys example 2019-02-11 14:14:35 +08:00
Milo Yip
b94c2a1203 Adding swap() for GenericMember 2019-02-08 11:39:25 +08:00
Milo Yip
0739a3e88b Fix gcc compilation error in sortkeys 2019-02-06 20:35:20 +08:00
Milo Yip
f595f8a6a5 Update sortkeys.cpp 2019-02-06 19:59:09 +08:00
seky
d0188462d9 removed std::string and receiving const Value in printIt 2018-12-05 08:24:59 +01:00
seky
c9060b4a5c added example for sorting keys 2018-12-04 22:40:40 +01:00
luz.paz
915218878a Misc. typos
Found via `codespell -q 3` in  downstream https://github.com/BlueBrain/Brayns
2018-02-19 06:42:52 -05:00
Milo Yip
49562271be Fix Windows build 2018-02-13 15:08:20 +08:00
Milo Yip
82b5c42567 Fix Compile error because of -Werror=effc++ is on
Fix #1170
Also fixed C++03 problem for using nullptr.
2018-02-12 13:14:59 +08:00
Milo Yip
daabb88e00
Merge pull request #1068 from yurikhan/violationDetails
Schema violation details
2018-01-26 11:26:27 +08:00
Milo Yip
fc7cda78a9 Fix -Werror=effc++
#1164
2018-01-16 10:35:25 +08:00
Milo Yip
b1e556d713
Merge branch 'master' into violationDetails 2018-01-13 22:34:58 +08:00
Milo Yip
f2a28ee472 Add archiver example
A simple (de)serialization framework using DOM and SAX API
2017-12-13 21:53:18 +08:00
Yuri Khan
a4b62ff61b Update schemavalidator example to demonstrate GetError() 2017-09-24 12:56:55 +07:00
Milo Yip
b61bbbfe37 Fix #947 -Weffc++ warning 2017-05-11 16:41:26 +08:00
John Stiles
f0c108b5c9 Remove all switch 2017-03-13 07:53:37 -07:00
John Stiles
6723e3296a Initialize v_ to placate GCC
v_ has a value assigned to it as part of ParseNext() which happens in
the constructor, but that’s not soon enough for GCC
2017-03-13 07:43:26 -07:00
John Stiles
bf19c1a0be Remove switch
GCC and Clang cannot agree on what constitutes a good switch statement.
2017-03-13 07:40:51 -07:00
John Stiles
e7fd707698 Improve LookaheadParser
Fix clang -Wswitch-enum warnings.
Made NextArrayValue() more robust—now handles error state correctly,
will enter error state if an unexpected state is reached.
Made separate states for each value type to simplify getters.
Simplified implementation of skipping arrays and objects.
Skipping an object now works whether you’ve retrieved the key or not.
2017-03-13 00:33:10 -07:00
John Stiles
260e2f372e Merge remote-tracking branch 'refs/remotes/origin/lookaheadparser' 2017-03-08 15:18:53 -08:00
StilesCrisis
8da89f54bd Fix GCC warning 2017-03-08 01:16:19 -08:00
StilesCrisis
d4669bbc8e Add lookahead parser example 2017-03-08 01:08:41 -08:00
Ted Lyngmo
ef22ca1732 Fix -Werror=effc++ errors with GNU 6.3.1
Fix "'MyHandler::type’ should be initialized in the member
initialization list [-Werror=effc++]" errors.

https://github.com/miloyip/rapidjson/issues/874
2017-03-08 09:47:38 +01:00
Ted Lyngmo
c64f378f16 Fix -Werror=effc++ errors with GNU 6.3.1
Fix "'MyHandler::type’ should be initialized in the member
initialization list [-Werror=effc++]" errors.

https://github.com/miloyip/rapidjson/issues/874
2017-03-08 06:25:41 +01:00
StilesCrisis
a11ec69796 More C++98 fixes 2017-02-04 01:18:46 -08:00
StilesCrisis
6288d95d1e SimplePullReader C++98 support
std::to_string can’t be used because it requires C++11.
2017-02-04 01:07:00 -08:00
StilesCrisis
4232e407f4 Clean up example code 2017-02-04 00:47:43 -08:00
StilesCrisis
d84d5fe055 Add example SimplePullHandler code
Example code to demonstrate how the token-pulling reader can be used.
2017-02-04 00:41:34 -08:00
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors. 2017-01-18 18:09:18 -06:00
Milo Yip
0f9dbe0a9c Defer thread creation in parsebypart example 2016-08-29 10:17:57 +08:00
Milo Yip
2e66339137 Disable parsebyparts example for clang 2016-06-13 09:54:02 +08:00
Milo Yip
00ed0a5f91 Fix gcc warning 2016-04-23 20:54:06 +08:00
Milo Yip
b010f388d1 Change FilterKeyHandler from struct to class
Also disable copy constructor/assignment operator
2016-04-23 20:11:05 +08:00
Milo Yip
05b2ed7532 Add filterkey and filterkeydom examples 2016-04-23 16:02:40 +08:00
Milo Yip
aae2fbfc99 Try to fix cmake CMP0054 warning 2016-04-21 23:12:31 +08:00
Milo Yip
c843a2655b Try to fix all /W4 warnings in VC2015 2016-04-04 15:01:34 +08:00
Milo Yip
1623ef2a96 Update simplewriter example with Writer::Key() 2016-03-08 14:35:10 +08:00
Chris Lundquist
d175915c55 [simplewriter.cpp] show generated output
This makes it painfully obvious that writer expects subsequent key/value pairs.
2016-03-05 18:14:20 -08:00
Milo Yip
facb432f91 Try another fix 2016-03-04 16:37:04 +08:00
Milo Yip
d60abc914c Fix example clang link flags 2016-03-04 14:09:56 +08:00
Milo Yip
a62777487d Normalize line endings but not JSON files 2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b Revert "Normalize all the line endings"
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12 Normalize all the line endings 2016-03-04 09:46:11 +08:00
Sergey Kosarevsky
5642a81f24 Added JsonxWriter::RawNumber() 2016-02-29 20:21:28 +01:00