ScriptEngine how to pass a String that represent JSON?

后端 未结 1 1087
一整个雨季
一整个雨季 2020-12-22 04:58

I was trying to pass a String object that represents a JSON string from java to javascript function using ScriptEngine in jdk 1.6.

My code works in JSFIDDLE http://j

相关标签:
1条回答
  • 2020-12-22 05:53

    The problem was on the jsonInput file I had to put all Json Stream in a single line and it works!

    0 讨论(0)
提交回复
热议问题