Hi,

I am trying to fetch an property value from a json payload similar to below.
{
            "Department": "ABC",
            "Employee Id": "123",
            "Work Email": "ud...@wso2.com"
        },

I could extract Department value by below xpath expression.

<property name="test" expression="//Department'"/>

However when I found difficulties when the property name contains an space
in middle. I tried few options which were not successful.  What is the
correct way to escape space character.

<property name="test" expression="//'Employee${nbsp}Id'"/>

<property name="test" expression="//'Employee&#x20Id'"/>

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to