How can I verify TradingView JSON syntax before sending webhook alerts?

Asked by Josh Sarvaiya · SOLVED
1 reply 460 views Jump to solution Reply
Josh Sarvaiya Original Post
Trader

When sending webhook payloads, my alerts fail on nested quotes and special characters. How can I validate the JSON before sending?

json
{
  "symbol": "{{ticker}}",
  "action": "{{strategy.order.action}}",
  "qty": {{strategy.order.contracts}}
}
Posted 6h ago
Reply

    1 Reply

    Tech Support AlgoDelta
    Tech Support AlgoDelta Automation Expert ·

    Paste the message into any JSON validator after replacing the placeholders with sample values — TradingView only substitutes them when the alert fires.

    Common mistakes:

    • Smart quotes (“ ”) copied from docs → use plain "
    • A trailing comma after the last field
    • Numeric placeholders like {{strategy.order.contracts}} must not be quoted

    The JSON Bridge log in AlgoDelta shows the raw body it received, so you can compare.

    Verified Solution
      Markdown supported · ```json for code blocks · paste or drop screenshots

      Be specific and kind. Never share API keys, passwords or personal account details.

      Welcome to the community

      Log in or create your account in under a minute.

      1. 1Mobile
      2. 2E-mail
      3. 3Password
      +91

      Have a password?

      By continuing you agree to the community guidelines. We’ll send a one-time code by SMS.