James Sirota created METRON-382:
-----------------------------------

             Summary: Fix special characters for config
                 Key: METRON-382
                 URL: https://issues.apache.org/jira/browse/METRON-382
             Project: Metron
          Issue Type: Bug
    Affects Versions: 0.2.1BETA
            Reporter: James Sirota
            Assignee: Casey Stella
             Fix For: 0.2.1BETA


We check our configs for proper JSON formatting, but we don't check for special 
characters.  It would be nice to check and automatically filter them out.  The 
command in Linux that works for this is:

tr -cd '\11\12\40-\176' < myfile1 > myfile2

We need to execute this as a part of our script to filter them out 
automatically.  I can see a lot of people being tripped up by this.  Every time 
you validate a JSON against a linter and then paste it back into VI these 
characters come in somehow.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to