how to limit the json fields while getting response in spring rest
<pre><code>this the code:

@RequestMapping(value="/find/city={city}", method=RequestMethod.GET)
public List&lt;Master_City&gt; getCity(@PathVariable String city)
 {
    return City_Repository.findByCityLikeIgnoreCase(city);
 }
</code></pre>

<p>All the JSON Fields are showing.I required only 2 Fields. </p>