![]() |
DAW JSON Link
|
The default parser policy is validating and disallows comments. The Unchecked
variants will skip most error checks and can give a good performance boost; this is useful when you can trust and know the data will be free of malicious errors.
The predefined policies are:
Hash comments, a #
in whitespace until end of line is comment.
daw::json::HashCommentSkippingPolicyChecked
daw::json::HashCommentSkippingPolicyUnchecked
//
in whitespace until end of line, or between /*
and */
in whitespace, are commments.daw::json::CppCommentSkippingPolicyChecked
daw::json::CppCommentSkippingPolicyUnchecked
PolicyType
or an equivalent.daw::json::json_value
-> daw::json::basic_json_value<PolicyType>
daw::json::json_pair
-> daw::json::basic_json_pair<PolicyType>
daw::json::from_json<T>
-> daw::json::from_json<T, PolicyType>
daw::json::from_json_array<ElementType>
-> daw::json::from_json_array<ElementType, ContainerType, PolicyType>
An example of parsing with C++ comments could be: