Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Use "JSON object" instead of "JSON dictionary" throughout.

Agnish Bauri436d29553a11
diff --git a/docs/webhooks/incoming-webhooks-walkthrough.md b/docs/webhooks/incoming-webhooks-walkthrough.md
index 0327404f9aa..570d0d23b9a 100644
--- a/docs/webhooks/incoming-webhooks-walkthrough.md
+++ b/docs/webhooks/incoming-webhooks-walkthrough.md
@@ -313,7 +313,7 @@ example:
--custom-headers='{"X-Custom-Header": "value"}'
-The format is a JSON dictionary, so make sure that the header names do
+The format is a JSON object, so make sure that the header names do
not contain any spaces in them and that you use the precise quoting
approach shown above.
@@ -336,7 +336,7 @@ By having Zulip open in one browser tab and this tool in another, you can
quickly tweak your webhook code and send sample messages for different
test fixtures.
-Custom HTTP headers must be entered as a JSON dictionary, if you want to
+Custom HTTP headers must be entered as a JSON object, if you want to
use any. Feel free to use 4-spaces as tabs for indentation if you'd like.
### Testing with the third-party service
diff --git a/starlight_help/src/content/docs/outgoing-webhooks.mdx b/starlight_help/src/content/docs/outgoing-webhooks.mdx
index 422af1b1f36..df3ac5d9531 100644
--- a/starlight_help/src/content/docs/outgoing-webhooks.mdx
+++ b/starlight_help/src/content/docs/outgoing-webhooks.mdx
@@ -66,7 +66,7 @@ of two possible formats, described below.
### Example response payloads
If the bot code wants to opt out of responding, it can explicitly
-encode a JSON dictionary that contains `response_not_required` set
+encode a JSON object that contains `response_not_required` set
to `True`, so that no response message is sent to the user. (This
is helpful to distinguish deliberate non-responses from bugs.)
diff --git a/zerver/management/commands/send_webhook_fixture_message.py b/zerver/management/commands/send_webhook_fixture_message.py
index de4a7094253..dba4655d77c 100644
--- a/zerver/management/commands/send_webhook_fixture_message.py
+++ b/zerver/management/commands/send_webhook_fixture_message.py
@@ -26,7 +26,7 @@ command line option.
Example:
--custom-headers='{"X-Custom-Header": "value"}'
-The format is a JSON dictionary, so make sure that the header names do
+The format is a JSON object, so make sure that the header names do
not contain any spaces in them and that you use the precise quoting
approach shown above.
"""
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 2dc6999d49d..e8c5947f715 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -28267,7 +28267,7 @@ components:
Field types 3 (Dropdown) and 7 (External account) support storing
additional configuration for the field type in the `field_data` attribute.
- For field type 3 (Dropdown), this attribute is a JSON dictionary
+ For field type 3 (Dropdown), this attribute is a JSON object
defining the choices and the order they will be displayed in the
dropdown UI for individual users to select an option.
@@ -28338,7 +28338,7 @@ components:
Field types 3 (Dropdown) and 7 (External account) support storing
additional configuration for the field type in the `field_data` attribute.
- For field type 3 (Dropdown), this attribute is a JSON dictionary
+ For field type 3 (Dropdown), this attribute is a JSON object
defining the choices and the order they will be displayed in the
dropdown UI for individual users to select an option.