title: Non Json Format to JSON format
body: <p>I have a string which is 'almost' a json string, only that its keys are not surrounded by quotes. 
  Normally it is used by the UI and javascript which does not have a problem in interpreting it.  However it seems the JSON parsers in Java that i know of require key to be surrounded by quotes.</p>
  
  <p>Is there a way i can convert the string to a valid json string, probably by using a regular expression in Java.
  Or is there a JSON lib which is a bit lenient.</p>
  
  <p>The String will be of the form</p>
  
  <pre><code>{
     A : "Val1", 
     B : [ SOME NESTED STUFF], 
     C : "Val3"
  }
  </code></pre>
  
  <p>and i need to convert it to </p>
  
  <pre><code>{
     "A" : "Val1", 
     "B" : [ SOME NESTED STUFF], 
     "C" : "Val3"
  }
  </code></pre>
  
  <p>without affecting any of the nested stuff. The number of keys ie A, B, C is fixed.</p>
  
  <p>Thanks</p>
  
  <p>P.S. I cannot get the appropriate JSON string returned to me, it is a pre existing code and it is quite risky to change it.</p>