File: deprecated.md

package info (click to toggle)
jsoncons 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,276 kB
  • sloc: cpp: 143,266; sh: 34; makefile: 8
file content (44 lines) | stat: -rw-r--r-- 3,080 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## Deprecated Features

As the `jsoncons` library has evolved, names have sometimes changed. To ease transition, jsoncons deprecates the old names but continues to support many of them. The deprecated names can be suppressed by defining macro JSONCONS_NO_DEPRECATED, which is recommended for new code.

Category/class|Old name|Replacement
--------|-----------|--------------
`pretty json`| | 
 |`encode_json` overloads that take a `jsoncons::indenting` argument|Use `_pretty` overloads instead
 |`basic_json::dump`overloads that take a `jsoncons::indenting` argument|Use `_pretty` overloads instead
`allocator_set`| | 
 |`combine_allocators`|Use `make_alloc_set` 
 |`temp_allocator_only`|Use `make_alloc_set` with first argument **temp_allocator_arg** 
`parsing`| | 
 |`strict_json_parsing`|Set `json_option::`allow_comments`to **false**  
 |`allow_trailing_commas`|Set `json_option::`allow_trailing_commas`to **true**  
`basic_json_options`| | 
 |`bigint_chars_format`|`bignum_chars_format`
 |`bigint_chars_format::number`|`bignum_chars_format::raw`
 |`lossless_bigint`|Use `lossless_bignum` instead
 |`line_splits`|Use the `root_line_splits` option instead (since 1.5.0)
 |**json_type::object_value**|Use `json_type::object` instead
`basic_json_parser`| | 
 |`basic_json_parser` constructor overloads that take an `err_handler` argument|Use the `allow_trailing_comma` and `allow_comments` options instead
 |`basic_json_reader` constructor overloads that take an `err_handler` argument|Use the `allow_trailing_comma` and `allow_comments` options instead
 |`basic_json_cursor` constructor overloads that take an `err_handler` argument|Use the `allow_trailing_comma` and `allow_comments` options instead
`csv::basic_csv_parser`| | 
 |`csv::basic_csv_parser` constructor overloads that take an `err_handler` argument|
 |`csv::basic_csv_reader` constructor overloads that take an `err_handler` argument|
 |`csv::basic_csv_cursor` constructor overloads that take an `err_handler` argument|
`csv::result_options`| | 
 |**csv::result_options::value**|Use `csv::result_options{}` instead
`json_type`| | 
 |**json_type::null_value**|Use `json_type::null` instead (since 1.5.0)
 |**json_type::bool_value**|Use `json_type::boolean` instead (since 1.5.0)
 |**json_type::int64_value**|Use `json_type::int64` instead (since 1.5.0)
 |**json_type::uint64_value**|Use `json_type::uint64` instead (since 1.5.0)
 |**json_type::half_value**|Use `json_type::float16` instead (since 1.5.0)
 |**json_type::double_value**|Use `json_type::float64` instead (since 1.5.0)
 |**json_type::string_value**|Use `json_type::string` instead (since 1.5.0)
 |**json_type::byte_string_value**|Use `json_type::byte_string` instead (since 1.5.0)
 |**json_type::array_value**|Use `json_type::array` instead (since 1.5.0)
 |**json_type::object_value**|Use `json_type::object` instead (since 1.5.0)