The only option for commenting in a JSON document is to add the comment to the data structure. As far as comments go, this is not *really* a comment, as it affects the document itself. Normally, comments are disregarded by the compiler and therefore do not affect the code.
Jonathan Porta On Thu, Feb 23, 2012 at 9:16 AM, Robert Newson <[email protected]> wrote: > A design document needs to be valid JSON. Are your comments inside JSON > strings? > > B. > > On 23 February 2012 15:44, Ian Mayo <[email protected]> wrote: >> Hi all, >> like a good software engineer I'm trying to document my code. >> >> But, each time I try to put a // or /* comment into my design document >> the transfer to couchdb fails. >> >> Is there a way of putting comments into a design document? >> >> cheers, >> Ian
