chimpler / pyhocon

HOCON parser for Python
Apache License 2.0
502 stars 118 forks source link

Unable to handle slash '\' correctly in json input #293

Open YK-Samgo opened 1 year ago

YK-Samgo commented 1 year ago

As json defined, the slash ‘/’ in string must be escaped like '\/', but pyhocon can't handle it correctly.

# echo '{"path":"\/var"}' | pyhocon
{
  "path": "\\/var"
}