pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Unable to handle slash '\' correctly in json input

Open YK-Samgo opened this issue 3 years ago • 0 comments

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

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

YK-Samgo avatar Oct 14 '22 07:10 YK-Samgo