Jersey 2.x using Pojo as Parameter for POST Jersey 2.x using Pojo as Parameter for POST json json

Jersey 2.x using Pojo as Parameter for POST


After further review, the code above works fine.The problem was when calling the class, I was sending the payload with lowercased names.The POJO looks like

private String someString;public void getSomeString() { ... }public String setSomeString (String s) {...}

The problem in my payload was me sending "someString" instead of "SomeString".This is very relevant as it was the cause that my object was received as null.

After changing the payload the error changed to this.Jackson with JSON: Unrecognized field, not marked as ignorable