Closed MartinTheDragon closed 1 year ago
There was an issue here, but also, if the value doesn't exist it should throw. daw::json::as<std::optional<std::string>>( json )
would be correct or some other Nullable type.
Thanks for finding, this is closed by #400
Trying to parse non-existing paths as strings will cause segmentation faults.
Example:
Attempting to parse number literals in a similar manner will produce a
json_exception
withErrorReason::UnexpectedEndOfData
as the specified reason, which may or may not be correct.