title: Should Spring Rest Service return Map rather than a DTO for JSON
body: <p>Because creating a DTO for each request would be painful, I turned it to a map. Is there any other way to return JSON better than this? </p>
  
  <pre><code>public @ResponseBody
      Map&lt;String, String&gt; myTest() {    
          Map&lt;String,String&gt; myMap = new HashMap&lt;String, String&gt;();
          myMap.put("a", "1");
          myMap.put("b", "2");
          return myMap;
      }
  </code></pre>