Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving the JSON support for the property mediator #5266

Closed
GDLMadushanka opened this issue Sep 28, 2020 · 0 comments · Fixed by wso2/wso2-synapse#1634 or wso2-attic/devstudio-tooling-esb#1355
Assignees

Comments

@GDLMadushanka
Copy link
Contributor

Description:
Property mediator is used as a "variable" in synapse programming lang.
Currently, it supports the following data types.
STRING, INTEGER, BOOLEAN, DOUBLE, FLOAT, LONG, SHORT, OM
Even though we have OM data type to store XML payloads, we don't have a specific data type to store JSON payloads.
So, currently, we are storing JSON with the string data type and we have to try-parse into JSON to identify whether the payload is a JSON.
This leads to issues like #4924

As improvements, we can introduce a JSON data type to the property mediator.
Also, we can add the json-eval support for such properties as follows.
json-eval($.student.name , ”prop1”)

Suggested Labels:
Improvement

Related Issues:
#5136
json-path/JsonPath#272
#4924

@GDLMadushanka GDLMadushanka self-assigned this Sep 28, 2020
GDLMadushanka added a commit to GDLMadushanka/wso2-synapse that referenced this issue Oct 2, 2020
Introduce JSON type to property and json-eval evaluation against
properties
Fixes wso2/product-ei/issues/5266
GDLMadushanka added a commit to GDLMadushanka/wso2-synapse that referenced this issue Oct 2, 2020
Introduce JSON type to property and json-eval evaluation against
properties
Fixes wso2/product-ei/issues/5266
GDLMadushanka added a commit to GDLMadushanka/wso2-synapse that referenced this issue Oct 2, 2020
Introduce JSON type to property and json-eval evaluation against
properties
Fixes wso2/product-ei/issues/5266
GDLMadushanka added a commit to GDLMadushanka/wso2-synapse that referenced this issue Oct 5, 2020
Introduce JSON type to property and json-eval evaluation against
properties
Fixes wso2/product-ei/issues/5266
GDLMadushanka added a commit to GDLMadushanka/devstudio-tooling-esb that referenced this issue Oct 19, 2020
GDLMadushanka added a commit to GDLMadushanka/devstudio-tooling-esb that referenced this issue Oct 19, 2020
GDLMadushanka added a commit to GDLMadushanka/devstudio-tooling-esb that referenced this issue Oct 19, 2020
GDLMadushanka added a commit to GDLMadushanka/devstudio-tooling-esb that referenced this issue Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment