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
The problem was on the jsonInput file I had to put all Json Stream in a single line and it works!