AndroidJSCore icon indicating copy to clipboard operation
AndroidJSCore copied to clipboard

How to pass Custom Java object to AndroidJSCore

Open kashifgrocerkey opened this issue 8 years ago • 2 comments

Hi I have a class Person as:

`Person { @JsonProperty("Name") String name;

@JsonProperty("Age") int age; }`

I want to pass this into AndroidJSCore but i got exception unknown property 'Name' from underlying js function. But if i covert my 'Person' object into Map/HashMap using 'ObjectMapper' and then pass it to AndroidJSCore then it works fine but it has performance issues.

Please suggest any good way to pass Custom Java objects as well as List of to AndroidJSCore

kashifgrocerkey avatar Oct 07 '18 14:10 kashifgrocerkey

AndroidJSCore is ancient and deprecated. Please use LiquidCore instead.

ericwlange avatar Oct 08 '18 05:10 ericwlange

Yes i have used both libraries, i am using com.github.LiquidPlayer:LiquidCore:0.5.0 . Can you please suggest any good way to pass Custom Java objects as well as List of to LiquidCore

kashifgrocerkey avatar Oct 08 '18 06:10 kashifgrocerkey