Function parseAs

#include <matjson.hpp>template<class T>geode::Result<T>parseAs(,)

Parses non standard JSON from an input stream and tries to convert it to a given type

Parameters

source

Stream to parse

opts

Non standard parsing options
Template parameters

T

The type to convert to
Return value
The parsed struct or an error

ℹ Shorthand for Value::parse(...).as<T>()

Examples0