title: How to convert int to json in java
body: <p>How can I convert an int to a JSON in java. 
  A simple Example: </p>
  
  <pre><code>int number = 5; 
  Gson gson = new Gson();
  String numbersJson = gson.toJson(number);
  return number; 
  </code></pre>
  
  <p>but this is not working :( because i got 5 as returned value.
  I want the json format: <code>{"number": 5}</code> as value </p>