|
658 | 658 | "JSON.ARRAPPEND": [
|
659 | 659 | "* If the path is enhanced syntax:",
|
660 | 660 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the new length of the array at each path.",
|
661 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not an array.", |
| 661 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not an array.", |
662 | 662 | "* If the path is restricted syntax:",
|
663 | 663 | " * [Integer reply](../topics/protocol.md#integers): The array's new length.",
|
664 |
| - " * [Integer reply](../topics/protocol.md#integers): If multiple array values are selected, the command returns the new length of the last updated array", |
| 664 | + " * [Integer reply](../topics/protocol.md#integers): If multiple array values are selected, the command returns the new length of the last updated array.", |
665 | 665 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
666 | 666 | " * if the path does not exist.",
|
667 | 667 | " * if the value at the path is not an array (only for restricted syntax).",
|
|
670 | 670 | "JSON.ARRINDEX": [
|
671 | 671 | "* If the path is enhanced syntax:",
|
672 | 672 | " * [Array reply](../topics/protocol.md#arrays): Array of integers. Each value is the index of the matching element in the array at the path. The value is -1 if not found.",
|
673 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not an array.", |
| 673 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not an array.", |
674 | 674 | "* If the path is restricted syntax:",
|
675 | 675 | " * [Integer reply](../topics/protocol.md#integers): The index of matching element, or -1 if not found.",
|
676 | 676 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
|
681 | 681 | "JSON.ARRINSERT": [
|
682 | 682 | "* If the path is enhanced syntax:",
|
683 | 683 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the new length of the array at each path.",
|
684 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is an empty array or not an array.", |
| 684 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is an empty array or not an array.", |
685 | 685 | "* If the path is restricted syntax:",
|
686 | 686 | " * [Integer reply](../topics/protocol.md#integers): The new length of the array.",
|
687 | 687 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
|
693 | 693 | "JSON.ARRLEN": [
|
694 | 694 | "* If the path is enhanced syntax:",
|
695 | 695 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the array length at each path.",
|
696 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not an array.", |
697 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 696 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not an array.", |
| 697 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
698 | 698 | "* If the path is restricted syntax:",
|
699 | 699 | " * [Integer reply](../topics/protocol.md#integers): The array length.",
|
700 | 700 | " * [Integer reply](../topics/protocol.md#integers): If multiple objects are selected, returns the first array's length.",
|
701 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 701 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
702 | 702 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
703 | 703 | " * if the path does not exist.",
|
704 | 704 | " * if the value at the path is not an array (only for restricted syntax).",
|
|
707 | 707 | "JSON.ARRPOP": [
|
708 | 708 | "* If the path is enhanced syntax:",
|
709 | 709 | " * [Array reply](../topics/protocol.md#arrays): Array of bulk strings representing popped values at each path.",
|
710 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is an empty array or not an array.", |
| 710 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is an empty array or not an array.", |
711 | 711 | "* If the path is restricted syntax:",
|
712 | 712 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): The popped JSON value.",
|
713 |
| - " * [Null reply](../topics/protocol.md#nulls): If the array is empty.", |
| 713 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the array is empty.", |
714 | 714 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
715 | 715 | " * if the value at the path is not an array (only for restricted syntax).",
|
716 | 716 | ""
|
717 | 717 | ],
|
718 | 718 | "JSON.ARRTRIM": [
|
719 | 719 | "* If the path is enhanced syntax:",
|
720 | 720 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the new length of the array at each path.",
|
721 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is an empty array or not an array.", |
| 721 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is an empty array or not an array.", |
722 | 722 | "* If the path is restricted syntax:",
|
723 | 723 | " * [Integer reply](../topics/protocol.md#integers): The new length of the array.",
|
724 |
| - " * [Null reply](../topics/protocol.md#nulls): If the array is empty.", |
| 724 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the array is empty.", |
725 | 725 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
726 | 726 | " * if the value at the path is not an array (only for restricted syntax).",
|
727 | 727 | " * if an index argument is out of bounds.",
|
|
743 | 743 | " * [Array reply](../topics/protocol.md#arrays): Empty array if the Valkey key does not exist.",
|
744 | 744 | " * If the path is restricted syntax:",
|
745 | 745 | " * [Integer reply](../topics/protocol.md#integers): Memory size of the JSON value in bytes.",
|
746 |
| - " * [Null reply](../topics/protocol.md#nulls): If the Valkey key does not exist.", |
| 746 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the Valkey key does not exist.", |
747 | 747 | "* For DEPTH:",
|
748 | 748 | " * [Integer reply](../topics/protocol.md#integers): The maximum path depth of the JSON document.",
|
749 |
| - " * [Null reply](../topics/protocol.md#nulls): If the Valkey key does not exist.", |
| 749 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the Valkey key does not exist.", |
750 | 750 | "* For FIELDS:",
|
751 | 751 | " * If the path is enhanced syntax:",
|
752 | 752 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing number of fields of JSON value at each path.",
|
753 | 753 | " * [Array reply](../topics/protocol.md#arrays): Empty array if the Valkey key does not exist.",
|
754 | 754 | " * If the path is restricted syntax:",
|
755 | 755 | " * [Integer reply](../topics/protocol.md#integers): Number of fields of the JSON value.",
|
756 |
| - " * [Null reply](../topics/protocol.md#nulls): If the Valkey key does not exist.", |
| 756 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the Valkey key does not exist.", |
757 | 757 | "* For HELP:",
|
758 | 758 | " * [Array reply](../topics/protocol.md#arrays): Array of help messages.",
|
759 | 759 | ""
|
|
789 | 789 | "* [Array reply](../topics/protocol.md#arrays): Array of Bulk Strings with size equal to the number of keys in the command.",
|
790 | 790 | " * Each element is either:",
|
791 | 791 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): Serialized JSON as located by the path.",
|
792 |
| - " * [Null reply](../topics/protocol.md#nulls): If the key does not exist, the path does not exist in the document, or the path is invalid.", |
| 792 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the key does not exist, the path does not exist in the document, or the path is invalid.", |
793 | 793 | "* [Simple error reply](../topics/protocol.md#simple-errors): WRONGTYPE error if any specified key exists but is not a JSON key.",
|
794 | 794 | ""
|
795 | 795 | ],
|
|
801 | 801 | "JSON.NUMINCRBY": [
|
802 | 802 | "* If the path is enhanced syntax:",
|
803 | 803 | " * [Array reply](../topics/protocol.md#arrays): Array of bulk strings representing the resulting value at each path.",
|
804 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not a number.", |
| 804 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not a number.", |
805 | 805 | "* If the path is restricted syntax:",
|
806 | 806 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): The resulting value.",
|
807 | 807 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): If multiple values are selected, returns the result of the last updated value.",
|
|
815 | 815 | "JSON.NUMMULTBY": [
|
816 | 816 | "* If the path is enhanced syntax:",
|
817 | 817 | " * [Array reply](../topics/protocol.md#arrays): Array of bulk strings representing the resulting value at each path.",
|
818 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not a number.", |
| 818 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not a number.", |
819 | 819 | "* If the path is restricted syntax:",
|
820 | 820 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): The resulting value.",
|
821 | 821 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): If multiple values are selected, returns the result of the last updated value.",
|
|
830 | 830 | "* If the path is enhanced syntax:",
|
831 | 831 | " * [Array reply](../topics/protocol.md#arrays): Array of arrays, each containing bulk strings representing keys in a matching object.",
|
832 | 832 | " * [Array reply](../topics/protocol.md#arrays): Empty array for each path where the value is not an object.",
|
833 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 833 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
834 | 834 | "* If the path is restricted syntax:",
|
835 | 835 | " * [Array reply](../topics/protocol.md#arrays): Array of bulk strings, each representing a key name in the object.",
|
836 | 836 | " * [Array reply](../topics/protocol.md#arrays): If multiple objects are selected, returns the keys of the first object.",
|
837 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 837 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
838 | 838 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
839 | 839 | " * if the value at the path is not an object (only for restricted syntax).",
|
840 | 840 | " * if the path does not exist (only for restricted syntax).",
|
|
843 | 843 | "JSON.OBJLEN": [
|
844 | 844 | "* If the path is enhanced syntax:",
|
845 | 845 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the object length at each path.",
|
846 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not an object.", |
847 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 846 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not an object.", |
| 847 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
848 | 848 | "* If the path is restricted syntax:",
|
849 | 849 | " * [Integer reply](../topics/protocol.md#integers): Number of keys in the object.",
|
850 | 850 | " * [Integer reply](../topics/protocol.md#integers): If multiple objects are selected, returns the first object's length.",
|
851 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 851 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
852 | 852 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
853 | 853 | " * if the value at the path is not an object (only for restricted syntax).",
|
854 | 854 | " * if the path does not exist (only for restricted syntax).",
|
|
860 | 860 | " * [Array reply](../topics/protocol.md#arrays): Empty array if the document key does not exist.",
|
861 | 861 | "* If the path is restricted syntax:",
|
862 | 862 | " * [Array reply](../topics/protocol.md#arrays): Representing the RESP form of the value at the path.",
|
863 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 863 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
864 | 864 | ""
|
865 | 865 | ],
|
866 | 866 | "JSON.SET": [
|
867 | 867 | "* [Simple string reply](../topics/protocol.md#simple-strings): 'OK' on success.",
|
868 |
| - "* [Null reply](../topics/protocol.md#nulls): If the NX or XX condition is not met.", |
| 868 | + "* [Nil reply](../topics/protocol.md#bulk-strings): If the NX or XX condition is not met.", |
869 | 869 | ""
|
870 | 870 | ],
|
871 | 871 | "JSON.STRAPPEND": [
|
872 | 872 | "* If the path is enhanced syntax:",
|
873 | 873 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the new length of the string at each path.",
|
874 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not a string.", |
| 874 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not a string.", |
875 | 875 | "* If the path is restricted syntax:",
|
876 | 876 | " * [Integer reply](../topics/protocol.md#integers): The string's new length.",
|
877 | 877 | " * [Integer reply](../topics/protocol.md#integers): If multiple string values are selected, returns the new length of the last updated string.",
|
|
884 | 884 | "JSON.STRLEN": [
|
885 | 885 | "* If the path is enhanced syntax:",
|
886 | 886 | " * [Array reply](../topics/protocol.md#arrays): Array of integers representing the length of string value at each path.",
|
887 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not a string.", |
888 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 887 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not a string.", |
| 888 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
889 | 889 | "* If the path is restricted syntax:",
|
890 | 890 | " * [Integer reply](../topics/protocol.md#integers): The string's length.",
|
891 | 891 | " * [Integer reply](../topics/protocol.md#integers): If multiple string values are selected, returns the first string's length.",
|
892 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
| 892 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
893 | 893 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
894 | 894 | " * if the value at the path is not a string (only for restricted syntax).",
|
895 | 895 | " * if the path does not exist (only for restricted syntax).",
|
|
898 | 898 | "JSON.TOGGLE": [
|
899 | 899 | "* If the path is enhanced syntax:",
|
900 | 900 | " * [Array reply](../topics/protocol.md#arrays): Array of integers (0 for false, 1 for true) representing the resulting boolean value at each path.",
|
901 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path where the value is not a boolean.", |
| 901 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path where the value is not a boolean.", |
902 | 902 | "* If the path is restricted syntax:",
|
903 | 903 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): 'true' or 'false' representing the resulting boolean value.",
|
904 | 904 | "* [Simple error reply](../topics/protocol.md#simple-errors):",
|
|
908 | 908 | ],
|
909 | 909 | "JSON.TYPE": [
|
910 | 910 | "* If the path is enhanced syntax:",
|
911 |
| - " * [Array reply](../topics/protocol.md#arrays): Array of strings representing type of the value at each path (one of: 'null', 'boolean', 'string', 'number', 'integer', 'object', 'array').", |
912 |
| - " * [Null reply](../topics/protocol.md#nulls): For each path that does not exist.", |
| 911 | + " * [Array reply](../topics/protocol.md#arrays): Array of strings representing type of the value at each path (one of: 'nil', 'boolean', 'string', 'number', 'integer', 'object', 'array').", |
| 912 | + " * [Nil reply](../topics/protocol.md#bulk-strings): For each path that does not exist.", |
913 | 913 | " * [Array reply](../topics/protocol.md#arrays): Empty array if the document key does not exist.",
|
914 | 914 | "* If the path is restricted syntax:",
|
915 | 915 | " * [Bulk string reply](../topics/protocol.md#bulk-strings): Type of the value.",
|
916 |
| - " * [Null reply](../topics/protocol.md#nulls): If the document key does not exist.", |
917 |
| - " * [Null reply](../topics/protocol.md#nulls): If the JSON path is invalid or does not exist.", |
| 916 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the document key does not exist.", |
| 917 | + " * [Nil reply](../topics/protocol.md#bulk-strings): If the JSON path is invalid or does not exist.", |
918 | 918 | ""
|
919 | 919 | ],
|
920 | 920 | "KEYS": [
|
|
0 commit comments