cancel
Showing results for 
Search instead for 
Did you mean: 

Document list development: jsonUtils.encodeJSONString(x)

sordina
Champ in-the-making
Champ in-the-making
Hi. This is my first post here Smiley Happy

I'm extending the documentList web-script in share to allow creation of new folders as a work-flow. I'm running into the exception [jsonUtils.encodeJSONString(x) is undefined] where previously the doclist.get.json.ftl script was having no issues. Can anyone give me a hint as to where I should be looking to fix this?
1 REPLY 1

mrogers
Star Contributor
Star Contributor
In a freemarker template,  the error about encodeJSONString(x) is a symptom of the contents of the expression and is probably nothing to do with JSON encoding itself.

You can get error if you are trying to display a property that does not exist or is null.     In which case you may need to specify some default values or test for empty properties.