title: JSON Unrecognized character escape ':'
body: <p>Good day, </p>
  
  <p>I am doing the <code>POST</code> of json property as follows:</p>
  
  <pre><code>{"db.URL":"jdbc\:derby\:C\:\\Users\\Sasha\\unicentaopos-database;create\=true"}
  </code></pre>
  
  <p>And getting an exception: <code>Unrecognized character escape ':' (code 58)\n at [Source: java.io.StringReader@358b85c8; line: 1, column: 480]</code></p>
  
  <p>Now, I guess I need to replace <code>\</code> with <code>\\</code>, but whenever I do that:</p>
  
  <pre><code>jsonString = jsonString.replaceAll("\\", "\\\\");
  </code></pre>
  
  <p>I get another exception:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
  \
   ^
      at java.util.regex.Pattern.error(Pattern.java:1955)
      at java.util.regex.Pattern.compile(Pattern.java:1702)
      at java.util.regex.Pattern.&lt;init&gt;(Pattern.java:1351)
      at java.util.regex.Pattern.compile(Pattern.java:1028)
      at java.lang.String.replaceAll(String.java:2223)
      at com.openbravo.pos.forms.AppConfig.convertConfigToJson(AppConfig.java:332)
      at com.openbravo.pos.forms.AppConfig.load(AppConfig.java:221)
      at com.openbravo.pos.forms.AppConfig.init(AppConfig.java:141)
      at com.openbravo.pos.forms.AppConfig.&lt;init&gt;(AppConfig.java:70)
      at com.openbravo.pos.forms.AppConfig.GetAppConfig(AppConfig.java:78)
      at com.openbravo.pos.forms.StartPOS$1.run(StartPOS.java:99)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.awt.EventQueue$3.run(EventQueue.java:703)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
  </code></pre>
  
  <p>How do I deal with it?
  Any help is highly appreciated. </p>