Important announcements from CouchCMS team
12 posts Page 2 of 2
Adding a few moments to previous post. Arrays declaration. Arrays are in [] , Objects are in {}

Create a first empty array
Code: Select all
<cms:set person = '[]' scope='global' is_json='1' />

Add to it one object, consisting of a key 'First Name' and a value 'Jane'.
Code: Select all
<cms:set person. = '{"First Name" : "Jane"}' scope='global' is_json='1' />

Alternative way to do the above 2 operations in one go is:
Code: Select all
<cms:set person = '[{"First Name" : "Jane"}]' scope='global' is_json='1' />
If anyone reads this topic, here is a sample of converting output of listing tag (query, pages, folders etc) to JSON and JSON to ul-li list. viewtopic.php?f=2&t=10262&p=28787#p28787
12 posts Page 2 of 2

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 1 guest