mirror of
https://github.com/nlohmann/json.git
synced 2024-11-23 22:19:02 +08:00
Use OS independent utf8 string representation of std_fs::path at to_json conversions.
This commit is contained in:
parent
64f68dc563
commit
4c5083dd3f
@ -435,7 +435,7 @@ inline void to_json(BasicJsonType& j, const T& t)
|
||||
template<typename BasicJsonType>
|
||||
inline void to_json(BasicJsonType& j, const std_fs::path& p)
|
||||
{
|
||||
j = p.string();
|
||||
j = p.u8string();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user