JSON for Modern C++  2.1.1
Public Member Functions | Friends | List of all members
nlohmann::basic_json::json_pointer Class Reference

JSON Pointer. More...

#include <json.hpp>

Public Member Functions

 json_pointer (const std::string &s="")
 create JSON pointer More...
 
 operator std::string () const
 return a string representation of the JSON pointer More...
 
std::string to_string () const noexcept
 return a string representation of the JSON pointer More...
 

Friends

class basic_json
 allow basic_json to access private members More...
 
bool operator!= (json_pointer const &lhs, json_pointer const &rhs) noexcept
 
bool operator== (json_pointer const &lhs, json_pointer const &rhs) noexcept
 

Detailed Description

template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer>
class nlohmann::basic_json::json_pointer

A JSON pointer defines a string syntax for identifying a specific value within a JSON document. It can be used with functions at and operator[]. Furthermore, JSON pointers are the base for JSON patches.

See also
RFC 6901
Since
version 2.0.0

Definition at line 11099 of file json.hpp.