Skip to content

Latest commit

 

History

History
96 lines (92 loc) · 8.5 KB

deprecated.md

File metadata and controls

96 lines (92 loc) · 8.5 KB

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.

In the table, indicates that the old name is still supported.

Component or location Old name, now deprecated New name
class basic_json add(size_t index, const json& val) insert(array_iterator pos, const json& val)
class basic_json add(size_t index, json&& val) insert(array_iterator pos, json&& val)
class basic_json dump_body dump
class basic_json remove_range(size_t from_index, size_t to_index) erase(array_iterator first, array_iterator last)
class basic_json remove(const std::string& name) erase(const string_view_type& name)
class basic_json parse_stream(std::istream& is) parse(std::istream& is)
class basic_json parse_stream(std::istream& is, parse_error_handler& err_handler) parse(std::istream& is, parse_error_handler& err_handler)
class basic_json as_int() const as<int>
class basic_json as_uint() const as<unsigned int>
class basic_json as_long() const as<long>
class basic_json as_ulong() const as<unsigned long>
class basic_json as_longlong() const as<long long>
class basic_json as_ulonglong() const as<unsigned long long>
class basic_json is_longlong() const is()
class basic_json is_ulonglong() const is()
class basic_json is_numeric() const is_number()
class basic_json remove_member(const std::string& name) erase(const string_view_type& name)
class basic_json const json& get(const std::string& name) const Use const json get(const std::string& name, T default_val) const with default json::null_type()
class basic_json has_member(const std::string& name) const Use contains(const string_view_type& name)
class basic_json has_key(const std::string& name) const Use contains(const string_view_type& name)
class basic_json add push_back
class basic_json set insert_or_assign
class basic_json members() object_range()
class basic_json elements() array_range()
class basic_json begin_members() Use object_range().begin()
class basic_json end_members() Use object_range().end()
class basic_json begin_elements() Use array_range().begin()
class basic_json end_elements() Use array_range().end()
class basic_json is_empty() const empty()
class basic_json parse_string(const std::string& s) parse(const std::string& s)
class basic_json parse_string(const std::string& s,parse_error_handler& err_handler) Use parse(const std::string& s,parse_error_handler& err_handler)
class basic_json resize_array(size_t n) resize(size_t n)
class basic_json resize_array(size_t n, const json& val) resize(size_t n, const json& val)
class basic_json to_stream Use dump
class basic_json write Use dump
class basic_json json initializer-list constructor Construct from json::array with initializer-list
class basic_json_deserializer json_deserializer Use json_decoder`
class basic_json_deserializer wjson_deserializer Use json_decoder<wjson>
class basic_json_deserializer ojson_deserializer Use json_decoder<ojson>
class basic_json_deserializer wojson_deserializer Use json_decoder<wojson>
class basic_json owjson wojson`
class basic_json member_type name() key()
class basic_json rename_name_filter rename_object_member_filter`
class basic_json any removed
class basic_json member_type key_value_pair_type
class basic_json kvp_type key_value_pair_type
class basic_json null Constant removed. Use static member function json::null()
class basic_json an_object Constant removed. Use the default constructor json() instead.
class basic_json an_array Constant removed. Use assignment to json::array() or json::make_array() instead.
class json_decoder root() get_result()
class json_content_handler begin_json Removed
class json_content_handler end_json flush
class json_content_handler begin_document Removed
class json_content_handler end_document flush
class json_content_handler do_begin_json Remove
class json_content_handler do_end_json Remove
class json_content_handler do_begin_document Remove
class json_content_handler do_end_document Remove
class output_format output_format json_serializing_options
class serialization_options serialization_options Use json_serializing_options
class json_reader max_depth(),max_depth(value) Use json_serializing_options::max_nesting_depth
class json_reader max_nesting_depth(),max_nesting_depth(value) Use json_serializing_options::max_nesting_depth
class json_reader json_input_handler& parent() Use json_input_handler& input_handler()
json_input_handler class do_longlong_value(long long value, const parsing_context& context) Override do_integer_value(int64_t value, const parsing_context& context)
class json_reader do_ulonglong_value(unsigned long long value, const parsing_context& context) Removed, override do_uinteger_value(uint64_t value, const parsing_context& context)
class json_reader do_double_value(double value, const basic_parsing_context& context) Removed, override do_double_value(double value, uint8_t precision, const basic_parsing_context& context)
class json_reader value(value,context)   Use string_value(value,context), integer_value(value,context), uinteger_value(value,context), double_value(value,precision,context), bool_value(value,context), null_value(context)
class json_output_handler class do_longlong_value(long long value) Removed, override do_integer_value(int64_t value)
  do_ulonglong_value(unsigned long long value) Removed, override do_uinteger_value(uint64_t value)
  do_double_value(double value) Removed, override do_double_value(double value, uint8_t precision)
  value(value) Use string_value(value), integer_value(value), uinteger_value(value), double_value(value,precision=0), bool_value(value), null_value(context)
basic_parsing_context last_char() Use current_char()
json_filter parent() Use downstream_handler()
  input_handler() Use downstream_handler()
csv csv_parameters Use csv_serializing_options
  csv_parameters::header(std::string value)   Use csv_serializing_options::column_names(const std::string& value)
  column_names(std::vector<std::string>> value) Use column_names(const std::string& value)
  data_types(std::string value) Use column_types(const std::string& value)
  column_types(std::vector<std::string>> value) Use column_types(const std::string& value)
  column_defaults(std::vector<std::string>> value) Use column_defaults(const std::string& value)
output_format array_array_block_option accessor and modifier accessor and modifier Use array_array_split_lines accessor and modifier
  array_object_block_option accessor and modifier Use array_object_split_lines accessor and modifier
  object_array_block_option accessor and modifier Use object_array_split_lines accessor and modifier
  object_object_block_option accessor and modifier Use object_object_split_lines accessor and modifier
msgpack jsoncons_ext/msgpack/message_pack.hpp header file Use jsoncons_ext/msgpack/msgpack.hpp
  encode_message_pack Use encode_msgpack
  decode_message_pack Use decode_msgpack