<p:unescape-markup content-type="application/json"/>There seem to be two problems:
- Leading white space causes failure.
- content type may have charset e.g. content-type="application/json;charset="UTF-8""
private static void build(TreeWriter tree, JSONTokener jt) {
tree.addStartElement(_json);
try {
char ch = jt.nextClean();
jt.back();
No comments:
Post a Comment