Fixing liquid syntax, such that post template rendering we have a valid ...

Fixing liquid syntax, such that post template rendering we have a valid json.
@smattoo I'm not sure what difference does your commit do. You changed the condition from if(!forloop.last) to if(forloop.last == false) which should be the same.