Factor out JSON stripComments().
Summary: Comments are a useful extension to JSON, especially for configuration files. Facebook: twagent would previously barf on JSON files that contained '//' in their strings, and this commit allows twagent to strip comments properly. Fixes T4686066. Test Plan: fbconfig common/json mcrouter/lib/config tupperware/agent && fbmake runtests Reviewed By: aravindn@fb.com Subscribers: anarayanan, pavlo, stepan, dipanshu, alikhtarov FB internal diff: D1493963 Tasks: 4686066
Showing
Please register or sign in to comment