Jump to content

JSON field dosen't seems to show up


Recommended Posts


I'm trying to use the WebService plugin. I could set up the datasource without problems but when I edit the query I can't load the fields from the response. I can see that the request is going in my REST controller (spring) but the fields never show up for me to select. Trying the request in my web browser displays the json.

I couldn't make a simpler test:

public class TestJson {       private final long testId;    private final String testContent;       public TestJson(long testId, String testContent) {        this.testId = testId;        this.testContent = testContent;    }    public long getTestId() {        return testId;    }    public String getTestContent() {        return testContent;    }}[/code]
@RequestMapping(value = "/test2", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)    public TestJson testREST2(@RequestParam String test ) {           return new TestJson(1, "Test");    }[/code]

When I call the URL with my browser I get a normal resposne :



EEDIT : This problem is related to this bug report : http://community.jaspersoft.com/jaspersoft-studio/issues/8791

Please fix or update the addon, it is impressively usefull when it works :)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...