{ "date": "<%= note_comment.created_at %>", <% unless note_comment.author_id.nil? -%> "uid": <%= note_comment.author_id %>, <% end -%> "user": "<%= note_comment.author_name %>", "text": "<%= note_comment.body %>" }