Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resp2_replies.json
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,9 @@
"* [Integer reply](../topics/protocol.md#integers):",
" * The number of containers cleared.",
" * Returns 0 if clearing an empty array or object.",
Comment on lines 747 to 748

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
" * The number of containers cleared.",
" * Returns 0 if clearing an empty array or object.",
" * The number of values cleared.",
" * A value is counted only when clearing changes it: a non-empty array or object is emptied, a non-empty string is set to empty, a non-zero number is set to 0, and true is set to false.",
" * Returns 0 for a value already empty, zero, false, or null.",

" * Returns 0 if clearing a non-container value.",
" * Returns 0 if clearing a non-container value except JSON string.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
" * Returns 0 if clearing a non-container value except JSON string.",
" * Returns 0 if clearing a non-container value.",

" * Returns 0 if no array or object value is located by the path.",
" * Always Returns 1 if clearing a JSON string value regardless of the length of the JSON string value including empty string.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
" * Always Returns 1 if clearing a JSON string value regardless of the length of the JSON string value including empty string.",
" *Returns 1 when clearing a JSON value.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it return the count of values, so this is incorrect.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
" * Always Returns 1 if clearing a JSON string value regardless of the length of the JSON string value including empty string.",

""
],
"JSON.DEBUG": [
Expand Down