--- --- [ {% for post in site.posts %} { "title" : "{% if post.title != "" %}{{ post.title | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", "url" : "{{ site.baseurl }}{{ post.url }}", "category" : "{{ post.categories | join: ', '}}", "date" : "{{ post.date | date: "%B %e, %Y" }}" } {% unless forloop.last %},{% endunless %} {% endfor %} ]