This content has been marked as final.
Show 2 replies
-
1. how to put double array into json
ilya40umov Jan 12, 2011 8:08 AM (in response to feuyeux)May be you should try ScriptUtils:
-
2. Re: how to put double array into json
feuyeux Jan 12, 2011 12:59 PM (in response to ilya40umov)Hi Ilya,
Firstly, thank you very much.
ScriptUtils is a class in the richfaces package org.ajax4jsf.javascript.That's a good news.
But, I do not think the method, toScript, is a perfect solution though it try to solve all types object tranferring from java object to json.
Because:
1. It uses iterator, also. Maybe iterative way cannot be substituted, that's OK.
2. It's the point. When the type is array, it will automatically add the quote sign:ret.append(','). It will reproduce the issue.
So, I hope the better way.