Hi,
Sorry to jump a (dead?) thread but it's relevant to what I am trying to do
and it made sense to put it in the same thread.
I have the following HashMap:
private Map<String, List<Category>> productCategoriesMap;
in my includeProperties, productCategoriesMap.* populates the json with
every property of the Category bean. For example:
{
"productCategoriesMap":{"ac80e9b6-29e6-4f00-9410-1a18a9dfd317":[{
"UUID":"4bd497a1-bd1b-417b-8d62-e1273fa5e648",
"name":"Test Sub-Category EDIT",
"parentCategoryUUID":"65750a38-d596-48d7-a215-56bcb21d8067",
"providerRepositoryUUID":"69011624-112a-457b-a222-edd3b543e585"
},{
"UUID":"65750a38-d596-48d7-a215-56bcb21d8067",
"name":"Category 4",
"parentCategoryUUID":"98e4b067-5b6b-4777-a28a-443a77209948",
"providerRepositoryUUID":"69011624-112a-457b-a222-edd3b543e585"
}]
}
However, I would like to only include UUID and name, as an example. I have
tried:
productCategoriesMap.*.name
productCategoriesMap.*.*
productCategoriesMap[*].name
productCategoriesMap.*\.name
productCategoriesMap\.*\.name
How do I use includeProperties to filter properties of beans within a map?
--
View this message in context:
http://www.nabble.com/JSON-plugin-ignoring-includeProperties-parameter-tp23660860p25240134.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]