Hi!
In the controller, "TestInfos = [[{name, "test1"}], [{name, "test2"}]], {ok, [{test_infos, TestInfos}]"
In the javacript, the value is not json array.
$(document).ready(function(){
console.log("*******", {{ test_infos }});
It will "Uncaught SyntaxError: Unexpected token , " --> console.log("*******", {name,"test1"}{name,"test2"});
I know i can return {json, [{test_infos, TestInfos]} to achieve this.
But i want to return by {ok, [{test_infos, TestInfos}]} and the client get {{ test_info }} is a json array, so i can use javascript to handle it in some particular situations, not to request the server one more time to get the value.