Skip to content

Instantly share code, notes, and snippets.

@odrotbohm
Created June 5, 2014 17:24
Show Gist options
  • Save odrotbohm/697aeab8638084b15604 to your computer and use it in GitHub Desktop.
Save odrotbohm/697aeab8638084b15604 to your computer and use it in GitHub Desktop.
List<Object> nested = new ArrayList<Object>();
nested.addAll(someNesteditems);
nested.addAll(someOtherNestedItems);
SampleResource resource = new SampleResource();
resource.nested = new Resources<Object>(nested);
@JsonAutoDetect(fieldVisibility = Visibility.ANY)
private static class SampleResource extends ResourceSupport {
@JsonUnwrapped Resources<Object> nested;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment