title: Extract String key-value pairs from a JSONObject in Java?
body: <p>I am retrieving single rows from an SQL table as a JSONObject. They looks like this but longer:</p>
  
  <pre><code>{"UserId":1111,"FirstName":"null","LastName",:"null","City":"Dallas","State":"Select"}
  </code></pre>
  
  <p>I want to extract the values and place them in Android TextView fields that correspond to the keys. The null string values should to be replaced with blank space. I was unable to do this with Maps, which were the closest I've gotten to what I want. I enter them in the TextViews like so:</p>
  
  <pre><code>firstname.setText(map.get("FirstName"));
  </code></pre>
  
  <p>Any established approach to this problem, whether they be lists, arrays, or hashmaps, would be appreciated.</p>