Jax-rs (Jersey) do Consumes Array of Json object w żądaniu POST

Korzystając z jax-rs (Jersey) próbuję zaimplementować żądanie POST, które pobiera listę obiektów JSON

//The resource look like this
@Path("/path")
@POST
@Consumes(MediaType.APPLICATION_JSON)
public void setJsonl(List<SomeObj> test) {
  //do work
  System.out.println(test);
}


//The class to define the json structure
@XmlRootElement
public class SomeObj{

private String tag;
private String value;

public String getTag() {
 return tag;
}

public void setTag(String tag) {
  this.tag = tag;
}

public String getValue() {
  return value;
}

public void setValue(String value) {
  this.value = value;
}
}

jak zawsze, gdy próbuję przetestować api REST za pomocą curl, zawsze otrzymuję błąd „złego żądania”, czy czegoś tu brakuje?

curl -X POST -H "Content-Type: application/json" -d '{"SomeObj":[{"tag":"abc", "value":"ghi"},{"tag":"123", "value":"456"}]}' http://{host_name}:8080/path_to_resource

questionAnswers(4)

yourAnswerToTheQuestion