Converting a Javascript array to a Java array

前端 未结 4 1199
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 17:38

I\'m trying to convert a Javascript array in Java to a Java array. I\'m using the javax.script package. I tested this example here, but the type \"NativeArray\" was not reco

4条回答
  •  不知归路
    2021-01-20 18:24

    I would recommend Doug Crockfords JSON-java library. This allows you to convert json to native JAVA objects.

提交回复
热议问题