|
| template<template< typename > typename Allocator, typename Predicate> |
| ObjectBase< Allocator >::size_type | grem::json::erase_if (ObjectBase< Allocator > &container, Predicate predicate) |
| template<template< typename > typename Allocator, typename U> |
| ArrayBase< Allocator >::size_type | grem::json::erase (ArrayBase< Allocator > &container, const U &value) |
| template<template< typename > typename Allocator, typename Predicate> |
| ArrayBase< Allocator >::size_type | grem::json::erase_if (ArrayBase< Allocator > &container, Predicate predicate) |
| constexpr bool | grem::json::isWhitespace (char32_t codePoint) noexcept |
| | Check if a Unicode code point is considered to be whitespace in JSON5.
|
| constexpr bool | grem::json::isPunctuationCharacter (char32_t codePoint) noexcept |
| | Check if a Unicode code point is considered to be punctuation in JSON5.
|
| constexpr bool | grem::json::isLineTerminatorCharacter (char32_t codePoint) noexcept |
| | Check if a Unicode code point marks the beginning of a line terminator sequence in JSON5.
|
| template<typename T, typename SerializerOverride = detail::NoSerializerOverride> |
| void | grem::json::serialize (std::ostream &stream, const T &value, const SerializationOptions &options={}, SerializerOverride serializerOverride={}) |
| | Serialize a value of any JSON-serializable type to an output stream.
|
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride> |
| void | grem::json::deserialize (std::istream &stream, T &value, const DeserializationOptions &options={}, DeserializerOverride deserializerOverride={}, const SourceLocation &source={}) |
| | Deserialize a value of any JSON-serializable type from an input stream.
|
| template<template< typename > typename Allocator> |
| std::ostream & | grem::json::operator<< (std::ostream &stream, const ObjectBase< Allocator > &value) |
| | Write a JSON object to an output stream using the default serialization options.
|
| template<template< typename > typename Allocator> |
| std::istream & | grem::json::operator>> (std::istream &stream, ObjectBase< Allocator > &value) |
| | Read a JSON object from an input stream using the default deserialization options.
|
| template<template< typename > typename Allocator> |
| std::ostream & | grem::json::operator<< (std::ostream &stream, const ArrayBase< Allocator > &value) |
| | Write a JSON array to an output stream using the default serialization options.
|
| template<template< typename > typename Allocator> |
| std::istream & | grem::json::operator>> (std::istream &stream, ArrayBase< Allocator > &value) |
| | Read a JSON array from an input stream using the default deserialization options.
|
| template<template< typename > typename Allocator> |
| std::ostream & | grem::json::operator<< (std::ostream &stream, const VariantBase< Allocator > &value) |
| | Write a JSON value to an output stream using the default serialization options.
|
| template<template< typename > typename Allocator> |
| std::istream & | grem::json::operator>> (std::istream &stream, VariantBase< Allocator > &value) |
| | Read a JSON value from an input stream using the default deserialization options.
|
| template<template< typename > typename Allocator> |
| std::ostream & | grem::json::operator<< (std::ostream &stream, const ValueBase< Allocator > &value) |
| | Write a JSON value to an output stream using the default serialization options.
|
| template<template< typename > typename Allocator> |
| std::istream & | grem::json::operator>> (std::istream &stream, ValueBase< Allocator > &value) |
| | Read a JSON value from an input stream using the default deserialization options.
|
| template<typename T, typename SerializerOverride = detail::NoSerializerOverride, typename Allocator = std::allocator<char>> |
| grem::StringBase< char, std::char_traits< char >, Allocator > | grem::json::serializeToString (const T &value, const SerializationOptions &options={}, SerializerOverride serializerOverride={}, const Allocator &allocator=Allocator()) |
| | Serialize a value of any JSON-serializable type to a string.
|
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride, typename Allocator = std::allocator<char>> |
| void | grem::json::deserializeFromString (grem::StringBase< char, std::char_traits< char >, Allocator > string, T &value, const DeserializationOptions &options={}, DeserializerOverride deserializerOverride={}, const SourceLocation &source={}) |
| | Deserialize a value of any JSON-serializable type from a string.
|
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride, typename Allocator = std::allocator<char>> |
| T | grem::json::deserializeFromString (grem::StringBase< char, std::char_traits< char >, Allocator > string, const DeserializationOptions &options={}, DeserializerOverride deserializerOverride={}, const SourceLocation &source={}) |
| | Deserialize a value of any JSON-serializable type from a string.
|
| template<typename Callback> |
| auto | grem::json::onNull (Callback callback) |
| | Build a Parser::ValueVisitor that handles Null values with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onBoolean (Callback callback) |
| | Build a Parser::ValueVisitor that handles Boolean values with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onString (Callback callback) |
| | Build a Parser::ValueVisitor that handles String values with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onNumber (Callback callback) |
| | Build a Parser::ValueVisitor that handles Number values with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onObject (Callback callback) |
| | Build a Parser::ValueVisitor that handles objects with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onArray (Callback callback) |
| | Build a Parser::ValueVisitor that handles arrays with a given callback function.
|
| template<typename Callback> |
| auto | grem::json::onProperty (Callback callback) |
| | Build a Parser::PropertyVisitor that handles object properties with a given callback function.
|
| template<template< typename > typename Allocator> |
| void | grem::json::swap (ObjectBase< Allocator > &a, ObjectBase< Allocator > &b) noexcept |
| template<template< typename > typename Allocator> |
| void | grem::json::swap (ArrayBase< Allocator > &a, ArrayBase< Allocator > &b) noexcept |