Working with JSON in Custom Actions
β
JSON Rules
Content-Type: application/json{ "key": "value" }{ "image_url": "https://example.com/image.jpg", "status": "ok" }
π§ General JSON Formatting Rules
{ "name": "Taylor", "city": "Denver", "date_joined": "2025-10-28" } // β Correct { name: Taylor, city: Denver } // β Missing quotes { "date_joined": 2025-10-28 } // β Dates must be strings{ "age": 32, "isMember": true } // β Correct { "age": "32", "isMember": "true" } // β Incorrect β numbers and booleans should not be quoted{ "nickname": null } // β Correct { "nickname": "null" } // β Incorrect β this is a string, not null
β‘ Common Pitfalls
π Best Practices
Last updated
Was this helpful?