namespace Poco::Dynamic::Impl

Overview

namespace Impl {

// global functions

bool Foundation_API
isJSONString(const Var& any);

void Foundation_API
appendJSONKey(
    std::string& val,
    const Var& any
    );

void Foundation_API
appendJSONString(
    std::string& val,
    const Var& any
    );

void Foundation_API
appendJSONValue(
    std::string& val,
    const Var& any
    );

template <typename C>
void
containerToJSON(
    C& cont,
    std::string& val
    );

} // namespace Impl

Detailed Documentation

Global Functions

bool Foundation_API
isJSONString(const Var& any)

Returns true for values that should be JSON-formatted as string.

void Foundation_API
appendJSONKey(
    std::string& val,
    const Var& any
    )

Converts the any to a JSON key (i.e.

wraps it into double quotes regardless of the underlying type) and appends it to val.

void Foundation_API
appendJSONString(
    std::string& val,
    const Var& any
    )

Converts the any to a JSON string (i.e.

wraps it into double quotes) regardless of the underlying type) and appends it to val.

void Foundation_API
appendJSONValue(
    std::string& val,
    const Var& any
    )

Converts the any to a JSON value (if underlying type qualifies as string - see isJSONString() - , it is wrapped into double quotes) and appends it to val.