i am trying to get json data and store data in db and send json object about status of operation i am able to store data in db but my return json object is not working fine i am not getting json object my java code:
@RequestMapping(value = "/a",headers="Content-Type=application/json",method = RequestMethod.POST)
    @ResponseBody
    public JSONObject data(@RequestBody String load) 
        {
           org.json.JSONObject obj = new org.json.JSONObject();
           obj.put("Status", "Success");
          obj.put("Details","DB updated");
          return obj;
         }
 
    