I have below object returned by a particular function
{"count":3,
"items":[
{
"organizationCode": "FP1",
"organizationName": "FTE Process Org"
},
{
"organizationCode": "T11",
"organizationName": "FTE Discrete Org"
},
{
"organizationCode": "M1",
"organizationName": "Seattle Manufacturing"
} ]
};
user has to search whether particular string exist in this object or not.
If user need to search T11
then he can enter either T11
or 'T11'
or "T11"
. all this case should be accepted. If user enteres T1
then it should not be accepted(I am mentioning because T11
contains T1
). if user enters "Seattle Manufacturing"
it should be accepted
I am trying to use contain
method but its not working. How can I do that?
I am struggling because there is very little material available regarding freemarker