diff --git a/json/tree.hpp b/json/tree.hpp index 614ab043..8ac12abc 100644 --- a/json/tree.hpp +++ b/json/tree.hpp @@ -379,4 +379,16 @@ from_json (const json::tree::node &n, Args&&... args) ); } + +//----------------------------------------------------------------------------- +template +T +from_json (const std::experimental::filesystem::path &src, Args &&...args) +{ + return from_json ( + *json::tree::parse (src), + std::forward (args)... + ); +} + #endif