Community
Participate
Working Groups
Build Identifier: SWT 3.7 Simple types can be exchanged (converted) between JS and Java. Currently, JSON notation is not supported: only the values are returned, we don't know what the keys are. This was reported by a user who has legacy Flash components that expect certain methods. BrowserFunctions do not work. JSON is pretty standard, so maybe this support could be added in the form of a Map. Reproducible: Always Steps to Reproduce: See attached snippet.
Created attachment 180544 [details] Modified 307 snippet to send JSON object.
(In reply to comment #0) > Currently, JSON > notation is not supported: only the values are returned, we don't know what the > keys are. I got confused and I was wrong when I stated that: null is returned, not even the values.
Created attachment 180565 [details] Better sample showing JSON expected behavior This example has JS returning a JSON object with key/value pairs, and Java returning a map. The JS parsing of the result from Java was adapted and now expects the map that is returned.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.