Square brackets causing Internal Server Error

Adding square brackets in the merge field value causes Internal Server Error.

{
  "find":"TEXT_1",
  "replace":"SPECIAL OFFER TO YOU IN [[city]]"
}

[[city]] is a placeholder field and it will be replaced, but it took me a while to figure out why I can’t render the template.

Will investigate the server error.

Are you trying to do something like this:

{
    "merge": [{
        "find": "CITY",
        "replace": "SYDNEY"
    }],
    "timeline": {
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "html",
                            "html": "<p>SPECIAL OFFER TO YOU IN {{CITY}}</p>",
                            "css": "p { color: #ffffff; font-size: 32px; }",
                            "width": 450,
                            "height": 200
                        },
                        "start": 0,
                        "length": 5
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "mp4",
        "resolution": "sd"
    }
}

That will find the placeholder for {{CITY}} and replace it with the word Sydney in your sentence.

No. We are doing Ad templates on our platform and [[city]] will be replaced with an actual city name before rendering, so it’s not a problem. I just didn’t know why I’m getting Internal Server Errors while working on the Shotstack template.