Skip to content

Commit 4e82285

Browse files
committed
update information on Nothing equality
1 parent 99bc8d0 commit 4e82285

File tree

1 file changed

+1
-1
lines changed
  • LearnJsonEverything/wwwroot/data/lessons

1 file changed

+1
-1
lines changed

LearnJsonEverything/wwwroot/data/lessons/path.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
"id": "718cf6cb-df2d-49ea-89d6-bcd0a2938ae8",
532532
"skip": false,
533533
"title": "JSON Path: Filtering on Value",
534-
"background": "You can also filter by comparing two values in a _comparison test_. JSON Path offers six comparison operators that should be familiar to users of C-based languages.\r\n\r\n- Equals `==`\r\n- Not equals `!=`\r\n- Less than `<`\r\n- Less than or equal `<=`\r\n- Greater than `>`\r\n- Greater than or equal `>=`\r\n\r\nThe equality operators `==` and `!=` work with all JSON value types, but the inequality operators `<` and friends are only defined for numbers and strings. Number comparison is based on the numeric value. String comparison is case-senstive by Unicode code point.\r\n\r\nOnly JSON primitive values (strings, numbers, booleans, and `null`) are supported as literals in expressions; structured values (arrays and objects) are not supported. String literals can be expressed using single or double quotes and follow the same rules as strings in name selectors. Other values are expressed raw, with no quotes.\r\n\r\nTo select a value from the current item, the same locally rooted path syntax is used, but with a restriction: segments may only contain a single name or index selector. This restriction guarantees that only a single value is selected, which is important because the comparisons above are only defined for single values.\r\n\r\nIf no value exists at the location identified by the path, a special value `Nothing` is returned. `Nothing` is not comparable to any JSON value, including `null`. Comparisons against `Nothing` **always** produce a boolean **false**. This has the effect that a successful comparison implies existence.",
534+
"background": "You can also filter by comparing two values in a _comparison test_. JSON Path offers six comparison operators that should be familiar to users of C-based languages.\r\n\r\n- Equals `==`\r\n- Not equals `!=`\r\n- Less than `<`\r\n- Less than or equal `<=`\r\n- Greater than `>`\r\n- Greater than or equal `>=`\r\n\r\nThe equality operators `==` and `!=` work with all JSON value types, but the inequality operators `<` and friends are only defined for numbers and strings. Number comparison is based on the numeric value. String comparison is case-senstive by Unicode code point.\r\n\r\nOnly JSON primitive values (strings, numbers, booleans, and `null`) are supported as literals in expressions; structured values (arrays and objects) are not supported. String literals can be expressed using single or double quotes and follow the same rules as strings in name selectors. Other values are expressed raw, with no quotes.\r\n\r\nTo select a value from the current item, the same locally rooted path syntax is used, but with a restriction: segments may only contain a single name or index selector. This restriction guarantees that only a single value is selected, which is important because the comparisons above are only defined for single values.\r\n\r\nIf no value exists at the location identified by the path, a special value `Nothing` is used. `Nothing` is not comparable to any JSON value, including `null`. `Nothing` is equal only to itself.",
535535
"docs": "path/basics",
536536
"api": null,
537537
"schemaDocs": null,

0 commit comments

Comments
 (0)