[AC-4496] Payload in KrollFunction: JNIUtil: !!! Unable to convert unknown Java object class 'java.util.ArrayList' to JS value !!!
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-11-07T14:42:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Rainer Schleevoigt |
Assignee | Shak Hossain |
Created | 2016-09-22T15:49:21.000+0000 |
Updated | 2016-11-07T14:42:34.000+0000 |
Description
A XML parser (json-java) gives me an object like this: https://github.com/AppWerft/Ti.RemoteXML/blob/master/test.json It is an object that contains as child partly arrays
I tried to use this object as second parameter in KrollFunction.call().
In all cases crashes the app. I tried to convert the Object into HashMap, KrollDict or JSONObject (via contructor). The only working way is to send the object by toString(). But in this case the payload must be converted to object on JS layer and exactly t his I would avoid.
Any ideas how I can clean transfer?
Hello, Can you provide a sample code? we will look into it. Thanks.