Calling Rest webservice using JQuery Ajax call , web service is returning JSON string

后端 未结 3 1275
离开以前
离开以前 2021-01-15 03:09

I have made a Rest Web Service:

package org.jboss.samples.rs.webservices;


import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.GET         


        
3条回答
  •  日久生厌
    2021-01-15 03:46

    use http://jsonlint.com/ to validate your output. your quotes are not valid.

    {"name":"toto"} is ok
    
    {'name':'toto'} is not
    

提交回复
热议问题