title: Convert string with space to json
body: <p>I've problem with text which i got it as server response. I want to write it down to shared preferences. But it throws exception because of there are white space and some key with empty value.</p>
  
  <p><strong>Name=Ali K,picture=,</strong></p>
  
  <pre><code>    String jsonStr="{IsEmailSubscription=true, Name=Ali K,picture=, 
  Id=2534, Surname=Murat, Email=Email}";
  
      JSONObject obj = new JSONObject(jsonStr);
      settings.edit().putString(SharedText.Customer.toString(),obj.toString()).commit();
  </code></pre>
  
  <p>what do you suggest....?</p>
  
  <p>EDIT 1:  </p>
  
  <pre><code>  org.json.JSONException: Unterminated object at character 39 of 
  
  {IsEmailSubscription=true, Name=Ahmet k, Id=2534, Surname=Kosen, 
  
  MobilePhone=5363481189, Email=Email}
  </code></pre>
  
  <p>Server returns me string but i need to convert it to 
  JSON, todo this i use JSONObject.</p>