79437480

Date: 2025-02-13 19:09:33
Score: 2.5
Natty:
Report link

It was invalid JSON because of the last added , There might be a shorter way of writing in Mockoon (?? would love to hear) but this generates valid JSON, using handlebarsjs if @last and else

    "thumbnailItemIds": [
  {{#each @firstItems}}
    "{{id}}"
    {{#if @last}}
    {{else}}
    ,
    {{/if}}
  {{/each}}
]
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @last
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: petervd81