[ https://issues.apache.org/jira/browse/OFBIZ-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184421#comment-14184421 ]
Adrian Crum commented on OFBIZ-5790: ------------------------------------ Thanks Scott. " I would never be concerned about whether a string contains JSON or not because the framework would have already converted it to a List/Map" - and how does the framework do that conversion? That is what is being discussed here. For example, right now the service engine will convert a String to a List or Map, but only if the String contains data formatted in an OFBiz-specific way. What if we wanted to convert a JSON String to a List or Map? The framework can't do that. > Json string parameters as a service input are not recognized by OFBiz > ServiceEventHandler. > ------------------------------------------------------------------------------------------ > > Key: OFBIZ-5790 > URL: https://issues.apache.org/jira/browse/OFBIZ-5790 > Project: OFBiz > Issue Type: Improvement > Affects Versions: Trunk > Reporter: Amardeep Singh Jhajj > Priority: Minor > Attachments: CommonEvents.java.patch, JSON.java.patch, > OFBIZ-5790.patch, jackson-annotations-2.4.0.jar, jackson-core-2.4.2.jar, > jackson-databind-2.4.2.jar > > > I was trying to pass the Json string as a input to a service, but is not > recognized by ServiceEventHandler. > Example Json String- {"faciltyId": "WebStoreWarehouse"} > I worked on this issue and attached a patch here. Here I have used Jackson > Json library for parsing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)