title: How parse JSON in JSP
body: <p>Get data on a page in JSON format, how can they be present in table form, for example.</p>
  
  <pre><code>@RestController
  @RequestMapping("/use_profile")
  public class ProfileController {
  
      @Autowired
      ProfileService profileService;
      @RequestMapping(value = "/my",method = RequestMethod.GET, produces = "application/json")
      @ResponseBody
      public Object getProfile(Principal principal){
          try {
              final String name = principal.getName();
              Profile profile = profileService.getProfileByUserLogin(name);
              return profile;
          }
      catch (Exception e){
          return "Error get Profile: " + e.getMessage();
      }
  
  }
  </code></pre>
  
  <p><strong>In JSP:</strong></p>
  
  <pre><code>&gt; &lt;script type="text/javascript"&gt;
  &gt;     var service = '/use_profile';
  &gt;     var RestGet = function (id) {
  &gt;         $.ajax({
  &gt;             type: 'GET',
  &gt;             url: service + "/" + id,
  &gt;             dataType: 'json',
  &gt;             async: false,
  &gt;             success: function (result) {
  &gt;                 $('#result').html(JSON.stringify(result));
  &gt; 
  &gt;             },
  &gt;             error: function (jqXHR, textStatus, errorThrown) {
  &gt;                 $('#response').html(JSON.stringify(jqXHR));
  &gt;             }
  &gt;         });
  &gt;     };
  &gt;     RestGet('my'); &lt;/script&gt;
  
  &gt;&lt;div class="panel-body" id="result"&gt;
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <blockquote>
    <p>{"id":4,"login":"user","name":"Ivan","surname":"Ivanov","city":"Spb","interests":"many","avatar":null,"aboutMe":null}</p>
  </blockquote>
  
  <p>how can parse this data in JSP, for example view in table form??</p>