From 39a38c5a8ac68da62f255041a0be8f05af1a1cb2 Mon Sep 17 00:00:00 2001 From: Louisa Lambrecht Date: Wed, 5 Jun 2024 13:47:01 +0200 Subject: [PATCH] language check --- docs/extensions/json.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/extensions/json.md b/docs/extensions/json.md index 19d47528730..d7930d058ac 100644 --- a/docs/extensions/json.md +++ b/docs/extensions/json.md @@ -810,7 +810,7 @@ true > Warning DuckDB's JSON data type uses [0-based indexing](#indexing). -To modify an existing JSON array there are the following functions. +The table below shows the available functions to modify an exising JSON array. | function name | Description | |:----------------------|:--------------------------------------------------| @@ -842,7 +842,7 @@ FROM (VALUES ('[54,64,10]'::JSON)) AS _(arr); +----------------+----------------+----------------+---------+------------+------+---------+ ``` -It should be noted that negative indeces index from the back or switch the rotation direction. +It should be noted that negative indices index from the back or switch the rotation direction. ```sql SELECT json_array_insert(arr, '"a"', -2) AS "insert", @@ -860,7 +860,7 @@ FROM (VALUES ('[54,64,10]'::JSON)) AS _(arr); ``` `json_array_remove` also takes a positive start and end index to delete a whole range of -values from an JSON array: +values from a JSON array: ```sql SELECT json_array_remove(arr, 2) AS "remove single element", @@ -876,7 +876,7 @@ FROM (VALUES ('[54,64,10]'::JSON)) AS _(arr); +-----------------------+--------------------------+ ``` -To manipulate the JSON objects the following functions might be helpful. +To manipulate JSON objects, the following functions are available. | function name | Description | |:----------------------|:--------------------------------------------------| @@ -884,7 +884,7 @@ To manipulate the JSON objects the following functions might be helpful. | `json_obj_rename_key` | Renames a key in an JSON object | | `json_obj_replace` | Replaces a value by a given key | -Whereas the behaviour for the three JSON object functions is like so: +The three JSON object manipulation functions behave as such: ```sql SELECT json_obj_add(obj, 'new', 42::INT) AS "add",