63 Commits

Author SHA1 Message Date
Dmitry Arkhipov
2e3388a00b benchmarks for direct conversions
So far supports:

* apache_builds.json
* canada.json
* citm_catalog.json
2025-01-24 09:05:26 +03:00
Dmitry Arkhipov
159a8f3ffc add CBOR example 2025-01-13 15:17:20 +03:00
Dmitry Arkhipov
bacc644f93 deprecate type aliases 2024-02-09 13:19:49 +03:00
Dmitry Arkhipov
75981e701e parse_into clears sequences before filling them 2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
c1b7174780 add array size checking for parse_into 2023-10-09 16:59:39 +03:00
Peter Dimov
53b99c8e6b Add example/parse_into_citm_catalog.cpp 2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
9859866d08 parse_into supports std::array 2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
98b85ad1ab parse_into tuple support works on C++11 2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
56fcb09f2d reusing existing conversion components 2023-10-09 16:59:39 +03:00
Peter Dimov
76c234b877 Add example/parse_into_canada.cpp 2023-10-09 16:59:39 +03:00
Peter Dimov
7761788417 Add parse_into 2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
b9e8b2edfe contextual conversions 2023-06-01 21:45:56 +03:00
Oliver Ofenloch
740dbaa7a6 Use the library's operator
```cpp
std::ostream &boost::json::operator<<(std::ostream &os, const boost::json::value &jv)
```
for output instead of jv.getXYZ() with std::ostream's operator <<
2023-05-08 10:52:52 +03:00
Dmitry Arkhipov
fde4e87877 remove generic_category alias 2022-10-19 17:43:19 +03:00
Dmitry Arkhipov
bd9891f73f Suppress msvc warnings 2022-01-16 18:06:50 +03:00
Dmitry Arkhipov
a63c6ff301 b2 feature for standlaone mode 2021-10-04 17:29:28 +03:00
Dmitry Arkhipov
a30b76c51b Remove unnecessary build script code 2021-10-04 17:29:28 +03:00
Dmitry Arkhipov
445efad9a9 Remove trailing whitespace 2021-06-26 16:17:57 +03:00
Dmitry Arkhipov
a160c55549 Revert "gcc-4.8 is supported"
This reverts commit f0ea69fefda1c8b02075814e32d86a74e216cc59.
2021-02-05 22:44:55 +03:00
Dmitry Arkhipov
f0ea69fefd gcc-4.8 is supported 2021-01-28 02:55:15 -08:00
Krystian Stasiowski
6a7d34117c C++11 is required
fix #451, close #452
2020-10-21 10:50:19 -07:00
Vinnie Falco
6f895a79cc Refactor basic_parser includes
fix #424
2020-10-04 18:30:22 -07:00
Vinnie Falco
9b86962fbc Add metadata and update repo links 2020-10-04 11:06:25 -07:00
Vinnie Falco
d026d5daed Rename to stream_parser 2020-09-26 17:57:00 -07:00
Vinnie Falco
ee112b8781 Add proxy example 2020-09-26 16:28:31 -07:00
Vinnie Falco
4c6caf01df Add path example 2020-09-26 16:21:28 -07:00
Vinnie Falco
7cb4ad1884 Rename to basic_parser::write_some (API Change)
fix #394

basic_parser::write is now called write_some
2020-09-24 10:39:25 -07:00
Andrzej Krzemieński
945d3d145b Remove unnecessary reset() in example
close #346

The call to `parser::reset` just after default construction is redundant.
2020-09-16 09:16:19 -07:00
Vinnie Falco
a53116ce38 Doc work on allocators 2020-09-12 16:16:50 -07:00
Krystian Stasiowski
f3d0710e37 Handler specifies structure and string limits 2020-09-09 12:12:50 -07:00
Vinnie Falco
24e8e45690 parser release has a precondition 2020-09-08 17:47:04 -07:00
Vinnie Falco
591e2dc5a5 serializer refactor (API Change):
fix #275

* serialize() replaces to_string()
* serialize.hpp replaces to_string.hpp
* serializer works on all types
* serialize, operator<< work on all types
* reset() takes pointer arguments
* resetting constructor removed
2020-09-07 10:36:26 -07:00
Krystian Stasiowski
3fae437722 Pass total string size to handlers
fix #266
2020-09-05 16:42:52 -07:00
Krystian Stasiowski
b94d3c14bd Structure size is passed to handlers 2020-08-27 18:44:44 -07:00
Vinnie Falco
832d1fb517 Refactor parsing interfaces (API change) 2020-08-27 13:48:26 -07:00
Krystian Stasiowski
7e7155de59 parser members don't throw, and tidy:
* parser members do not throw
* parse free functions are in parse.hpp

fix #199. close #201
2020-08-24 16:30:48 -07:00
Vinnie Falco
3e4eb3055f Doc work 2020-08-20 15:21:09 -07:00
Vinnie Falco
a90527ca7b Refactor value_builder 2020-08-20 11:18:12 -07:00
Vinnie Falco
36c4a1a787 basic_parser is a class template 2020-08-18 15:10:22 -07:00
Vinnie Falco
c6b4fcfbe0 basic_parser is a data member 2020-08-18 13:51:53 -07:00
Vinnie Falco
d2c7de6376 Add value_builder 2020-08-18 13:51:53 -07:00
Krystian Stasiowski
64bfb2e703 Pass raw number literals to handlers
close #142
2020-08-11 16:04:32 -07:00
Krystian Stasiowski
3ac73ec531 Comment and trailing comma support
close #116
2020-07-22 15:40:46 -07:00
Krystian Stasiowski
904252de0b Fix repo links
close #123
2020-07-03 11:51:58 -07:00
Krystian Stasiowski
86addf23a4 Remove size parameter from object and array handlers 2020-06-30 23:07:22 -04:00
Vinnie Falco
137c1653a8 Refactor string_view include 2020-04-17 14:31:55 -07:00
Vinnie Falco
2545475bdd basic_parser is a base 2020-04-04 06:58:55 -07:00
Vinnie Falco
845d7af5e3 Refactor include files for basic_parser 2020-04-01 09:22:23 -07:00
Vinnie Falco
38d5372465 Travis tests cmake 2020-03-29 18:46:03 -07:00
Vinnie Falco
8822a141c8 Tidy up parsers 2020-03-29 08:59:08 -07:00