• Jez Ng's avatar
    Factor out JSON stripComments(). · 34307dc2
    Jez Ng authored
    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
    34307dc2
json.h 5.03 KB