Solved
How to get each item of multifield in the form of json
I need each item of multifield as a json object in sling model.
I need each item of multifield as a json object in sling model.
Use the following code snippet.
@ValuemapValue
private Collection<Pojo> multifieldResourceName = Collections.emptyList();
//logic goes here
ObjectMapper mapper = new ObjectMapper();
mapper.writeValueAsString(multifieldResourceName );
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.