1

I trying to read my JSON parameter but when I try to read with system.out.println I get this

%7B%22rfx%22%3Atrue%2C%22rfp%22%3Afalse%2C%22rfp_x%22%3Afalse%2C%22allclassification%22%3Afalse%2C%22eu%22%

What should I do to read my JSON file!

@PostMapping("/filtreregioncloser")
public Iterable<Closerfprfx>gettab1(@RequestBody String filterRegion) {
    System.out.println(filterRegion);
    return null;      
}
Shalu T D
  • 3,921
  • 2
  • 26
  • 37
mehdi hanine
  • 113
  • 1
  • 4
  • 11
  • Does this answer your question? [@RequestBody and @ResponseBody annotations in Spring](https://stackoverflow.com/questions/11291933/requestbody-and-responsebody-annotations-in-spring) – luk2302 Aug 05 '20 at 12:23

1 Answers1

1

If you are only geting a string in your @RequestBody dont send a JSON, just send the string

Juany
  • 133
  • 1
  • 5