#include <json.hpp>
◆ serializer() [1/3]
template<typename BasicJsonType >
- Parameters
-
[in] | s | output stream to serialize to |
[in] | ichar | indentation character to use |
[in] | error_handler_ | how to react on decoding errors |
◆ serializer() [2/3]
template<typename BasicJsonType >
◆ serializer() [3/3]
template<typename BasicJsonType >
◆ ~serializer()
template<typename BasicJsonType >
◆ dump()
template<typename BasicJsonType >
internal implementation of the serialization function
This function is called by the public member function dump and organizes the serialization internally. The indentation level is propagated as additional parameter. In case of arrays and objects, the function is called recursively.
- strings and object keys are escaped using
escape_string()
- integer numbers are converted implicitly via
operator<<
- floating-point numbers are converted to a string using
"%g"
format
- binary values are serialized as objects containing the subtype and the byte array
- Parameters
-
[in] | val | value to serialize |
[in] | pretty_print | whether the output shall be pretty-printed |
[in] | ensure_ascii | If ensure_ascii is true, all non-ASCII characters in the output are escaped with \uXXXX sequences, and the result consists of ASCII characters only. |
[in] | indent_step | the indent level |
[in] | current_indent | the current indent level (only used internally) |
References nlohmann::detail::array, nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, nlohmann::detail::serializer< BasicJsonType >::dump(), nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, and nlohmann::detail::string.
Referenced by nlohmann::detail::serializer< BasicJsonType >::dump().
◆ operator=() [1/2]
template<typename BasicJsonType >
◆ operator=() [2/2]
template<typename BasicJsonType >
The documentation for this class was generated from the following file:
- FreeCAD/src/Mod/PartDesign/App/json.hpp