{"id":1636,"date":"2020-03-23T12:07:56","date_gmt":"2020-03-23T19:07:56","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"},"modified":"2020-03-23T12:07:56","modified_gmt":"2020-03-23T19:07:56","slug":"json-case-sensitive-insensitive-search-index-data","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","title":{"rendered":"JSON is Case Sensitive. You Don&#8217;t Have to Be."},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>A RoSe by any other case would smell as sweet. <a href=\"https:\/\/en.wikipedia.org\/wiki\/A_rose_by_any_other_name_would_smell_as_sweet\">William Shakespeare<\/a><\/p>\n<\/blockquote>\n\n\n\n<p><span>You must have learned <\/span><a href=\"https:\/\/www.grammarly.com\/blog\/capitalization-rules\/\"><span>capitalization rules<\/span><\/a><span> in your grammar school, but the real-world search is not so sensitive to capitalization. Charles de Gaulle uses lower case for the middle \u201cde\u201d, Tony La Russa uses upper case for \u201cLa\u201d &#8211; there may be etymological reasons for it, but it&#8217;s unlikely for your customer service agent to remember.\u00a0\u00a0 <\/span><span>Databases have a variety of sensitivities.\u00a0 SQL, by default, is case insensitive to identifiers and keywords, but case sensitive to data. <\/span>JSON is case sensitive to both field names and data.\u00a0 So is N1QL.\u00a0\u00a0JSON can have the following. N1QL will select-join-project each field and value as a distinct field and value.<\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]SELECT {&#8220;City&#8221;: &#8220;San Francisco&#8221;, &#8220;city&#8221;: &#8220;san francisco&#8221;, &#8220;citY&#8221;: &#8220;saN fanciscO&#8221;}<\/p>\n<p>[<br \/>\n  {<br \/>\n    &#8220;$1&#8221;: {<br \/>\n      &#8220;City&#8221;: &#8220;San Francisco&#8221;,<br \/>\n      &#8220;citY&#8221;: &#8220;saN fanciscO&#8221;,<br \/>\n      &#8220;city&#8221;: &#8220;san francisco&#8221;<br \/>\n    }<br \/>\n  }<br \/>\n][\/crayon]<\/p>\n\n\n\n<p>In this article, we&#8217;ll discuss dealing with <strong>data case sensitivity<\/strong>. Your field references are still <strong>case sensitive<\/strong>. If you use the wrong case for the field name, N1QL assumes this is a missing field and assigns MISSING value to that field.<\/p>\n\n\n\n<p>Let&#8217;s consider a simple predicate in N1QL to lookup all permutations of cases.<\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n\n\n\n<p><span>This requires seven different lookups into the index.\u00a0 &#8220;John&#8221; requires more index lookups and &#8220;Fitzerald&#8221; requires even more. <\/span><span>There is a standard way to do this. Simply create an index by lowering the case of the field and the literal.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE LOWER(name) = \u201cjoe\u201d[\/crayon]<\/p>\n\n\n\n<p><span>This lookup can be made faster by creating the index with the right expression.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]CREATE INDEX i1 ON customer(LOWER(name));[\/crayon]<\/p>\n\n\n\n<p><span>Ensure that your query is picking up the right index and pushes the predicate to the index scan. And that\u2019s the idea. Queries that have predicates pushed to the index scan run much faster than the queries that won\u2019t.\u00a0 This is true for predicates and true <a href=\"https:\/\/www.couchbase.com\/blog\/understanding-index-grouping-aggregation-couchbase-n1ql-query\/\">aggregate pushdown<\/a> as well.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]EXPLAIN SELECT * FROM `customer` WHERE LOWER(name) = &#8220;joe&#8221;;<\/p>\n<p>      {<br \/>\n        &#8220;#operator&#8221;: &#8220;IndexScan3&#8221;,<br \/>\n        &#8220;index&#8221;: &#8220;i1&#8221;,<br \/>\n        &#8220;index_id&#8221;: &#8220;c117bdf583c2e276&#8221;,<br \/>\n        &#8220;index_projection&#8221;: {<br \/>\n          &#8220;primary_key&#8221;: true<br \/>\n        },<br \/>\n        &#8220;keyspace&#8221;: &#8220;customer&#8221;,<br \/>\n        &#8220;namespace&#8221;: &#8220;default&#8221;,<br \/>\n        &#8220;spans&#8221;: [<br \/>\n          {<br \/>\n            &#8220;exact&#8221;: true,<br \/>\n            &#8220;range&#8221;: [<br \/>\n              {<br \/>\n                &#8220;high&#8221;: &#8220;&#8221;joe&#8221;&#8221;,<br \/>\n                &#8220;inclusion&#8221;: 3,<br \/>\n                &#8220;low&#8221;: &#8220;&#8221;joe&#8221;&#8221;<br \/>\n              }<br \/>\n            ]<br \/>\n          }<br \/>\n        ],[\/crayon]<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case insensitivity in a composite index scenario.<\/strong><\/h5>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE LOWER(name) = \u201cjoe\u201d<br \/>\nAND zip = 94821<br \/>\nAND salary &gt; 500<br \/>\nAND join_date &lt;= \u201c2017-01-01\u201d<br \/>\nAND LOWER(county) LIKE \u201csan%\u201d[\/crayon]<\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]CREATE INDEX i2 ON customer(LOWER(name),<br \/>\n                            zip,<br \/>\n                            LOWER(county),<br \/>\n                            join_date,<br \/>\n                            salary)[\/crayon]<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Case insensitivity in Array functions.<\/strong><\/h5>\n\n\n\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/stringfun.html\"><span>String functions<\/span><\/a><span> like SPLIT(), SUFFIXES(), many of the <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/arrayfun.html\"><span>array functions<\/span><\/a><span> and <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/objectfun.html\"><span>object functions<\/span><\/a><span> do return arrays. So how do you use them in a case insensitive way?<\/span><\/p>\n\n\n\n<p><span>We follow the same principle as before.\u00a0 Create an expression to lower case the values first before you process them via these functions.\u00a0<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]SELECT SPLIT(&#8220;Good Morning, Joe&#8221;) as splitresult;<br \/>\n    &#8220;splitresult&#8221;: [<br \/>\n      &#8220;Good&#8221;,<br \/>\n      &#8220;Morning,&#8221;,<br \/>\n      &#8220;Joe&#8221;<br \/>\n    ]<\/p>\n<p>SELECT SPLIT(LOWER(\u201cGood Morning, Joe\u201d));<br \/>\n    &#8220;splitresult&#8221;: [<br \/>\n      &#8220;good&#8221;,<br \/>\n      &#8220;morning,&#8221;,<br \/>\n      &#8220;joe&#8221;<br \/>\n    ]<br \/>\n[\/crayon]<\/p>\n\n\n\n<p><span>Now, what you really want is to filter based on a value within the string.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE\u00a0 LOWER(xyz) LIKE \u201c%good%\u201d;[\/crayon]<\/p>\n\n\n\n<p><span>This is probably the worst predicate in SQL &#8212; in terms of performance.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]SELECT * FROM customer<br \/>\nWHERE\u00a0 x IN SPLIT(LOWER(xyz)) SATISFIES x = \u201cgood\u201d END[\/crayon]<\/p>\n\n\n\n<p><span>Now, what index would you create for this?\u00a0 <a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advise.html\">ADVISE<\/a> comes in handy.<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n0<\/p>\n\n\n\n<p>As usual, verify your explain.<\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n1<\/p>\n\n\n\n<p><span>If you\u2019d like to UNNEST and have a simple WHERE clause, use this query. Always verify your explain to ensure the predicates are pushed to index scan.<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n2<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Using Tokens\u00a0<\/strong><\/h5>\n\n\n\n<p><span>TOKENS() function makes it simple to get the lower case by taking that option as an argument.\u00a0 See the article <\/span><a href=\"https:\/\/dzone.com\/articles\/more-than-like-efficient-json-search-with-couchbas\"><span>More Than LIKE: Efficient JSON Searching With N1QL<\/span><\/a><span> for details and examples<\/span><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Complex expressions.<\/strong><\/h5>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n3<\/p>\n\n\n\n<p><span>How could we optimize this?\u00a0 Index Advisor to the rescue. Again.<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n4<\/p>\n\n\n\n<p><span>Explain to confirm the plan:<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n5<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Bringing in the Big Guns: Full-Text Search<\/strong><\/h4>\n\n\n\n<p>As you&#8217;ve realized, this is a text processing and querying problem. FTS can scan, store, search text in various ways.\u00a0 Case insensitive search is one of them. Let&#8217;s see the plan for a simple search query.<\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n6<\/p>\n\n\n\n<p><span>This is NOT the plan you want\u2026This is using a primary scan!<\/span><\/p>\n\n\n\n<p><span>After creating the text index on the bucket customer, things are much better:<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n7<\/p>\n\n\n\n<p><span>The default standard analyzer lowers all the tokens and therefore you\u2019ll find all the \u201cjoe\u201ds : JOE, joe, Joe, JOe, etc.\u00a0 \u00a0You can define a custom analyzer and provide specific instruction to lowercase the tokens.\u00a0 Here&#8217;s an example.<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;neon&#8221; font-size=&#8221;17&#8243; line-height=&#8221;20&#8243; lang=&#8221;mysql&#8221; decode=&#8221;true&#8221;]WHERE name in [\u201cjoe\u201d, \u201cjoE\u201d, \u201cjOe\u201d, \u201cJoe\u201d, \u201cJoE\u201d, \u201cJOe\u201d, \u201cJOE\u201d]<br \/>\n[\/crayon]<\/p>\n8<\/p>\n\n\n\n<p>Here&#8217;s how you add it in the UI.\u00a0 See fine blog <a href=\"https:\/\/dzone.com\/articles\/8-ways-to-customize-couchbase-full-text-search-ind-1\" target=\"_blank\" rel=\"noopener noreferrer\">8 Ways to Customize Couchbase Full-Text Search Indexes<\/a> for details on various ways to customize the FTS index.<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-22-at-7.21.08-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8343 alignleft\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Screen-Shot-2020-03-22-at-7.21.08-PM-300x265-1.png\" alt=\"\" width=\"300\" height=\"265\"><\/a><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A RoSe by any other case would smell as sweet. William Shakespeare You must have learned capitalization rules in your grammar school, but the real-world search is not so sensitive to capitalization. Charles de Gaulle uses lower case for the middle \u201cde\u201d, Tony La Russa uses upper case for \u201cLa\u201d &#8211; there may be etymological [&hellip;]<\/p>\n","protected":false},"author":55,"featured_media":18,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"ppma_author":[291],"class_list":["post-1636","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity<\/title>\n<meta name=\"description\" content=\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON is Case Sensitive. You Don&#039;t Have to Be.\" \/>\n<meta property=\"og:description\" content=\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-23T19:07:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Keshav Murthy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rkeshavmurthy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Keshav Murthy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"},\"author\":{\"name\":\"Keshav Murthy\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\"},\"headline\":\"JSON is Case Sensitive. You Don&#8217;t Have to Be.\",\"datePublished\":\"2020-03-23T19:07:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"},\"wordCount\":1053,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\",\"name\":\"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2020-03-23T19:07:56+00:00\",\"description\":\"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/json-case-sensitive-insensitive-search-index-data\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON is Case Sensitive. You Don&#8217;t Have to Be.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\",\"name\":\"Keshav Murthy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"caption\":\"Keshav Murthy\"},\"description\":\"Keshav Murthy is a Vice President at Couchbase R&amp;D. Previously, he was at MapR, IBM, Informix, Sybase, with more than 20 years of experience in database design &amp; development. He lead the SQL and NoSQL R&amp;D team at IBM Informix. He has received two President's Club awards at Couchbase, two Outstanding Technical Achievement Awards at IBM. Keshav has a bachelor's degree in Computer Science and Engineering from the University of Mysore, India, and has received twenty four US patents.\",\"sameAs\":[\"https:\\\/\\\/blog.planetnosql.com\\\/\",\"https:\\\/\\\/x.com\\\/rkeshavmurthy\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/author\\\/keshav-murthy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity","description":"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","og_locale":"en_US","og_type":"article","og_title":"JSON is Case Sensitive. You Don't Have to Be.","og_description":"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.","og_url":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","og_site_name":"The Couchbase Blog","article_published_time":"2020-03-23T19:07:56+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"Keshav Murthy","twitter_card":"summary_large_image","twitter_creator":"@rkeshavmurthy","twitter_misc":{"Written by":"Keshav Murthy","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"},"author":{"name":"Keshav Murthy","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636"},"headline":"JSON is Case Sensitive. You Don&#8217;t Have to Be.","datePublished":"2020-03-23T19:07:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"},"wordCount":1053,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","url":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/","name":"Is JSON Case Sensitive or Not? | Upper + Lowercase Sensitivity","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","datePublished":"2020-03-23T19:07:56+00:00","description":"In this post, Couchbase demonstrates why JSON is case sensitive in certain fields and how to work with this sensitivity. Find helpful examples and more here.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/json-case-sensitive-insensitive-search-index-data\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JSON is Case Sensitive. You Don&#8217;t Have to Be."}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636","name":"Keshav Murthy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4","url":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","caption":"Keshav Murthy"},"description":"Keshav Murthy is a Vice President at Couchbase R&amp;D. Previously, he was at MapR, IBM, Informix, Sybase, with more than 20 years of experience in database design &amp; development. He lead the SQL and NoSQL R&amp;D team at IBM Informix. He has received two President's Club awards at Couchbase, two Outstanding Technical Achievement Awards at IBM. Keshav has a bachelor's degree in Computer Science and Engineering from the University of Mysore, India, and has received twenty four US patents.","sameAs":["https:\/\/blog.planetnosql.com\/","https:\/\/x.com\/rkeshavmurthy"],"url":"https:\/\/www.couchbase.com\/blog\/author\/keshav-murthy\/"}]}},"acf":[],"authors":[{"term_id":291,"user_id":55,"is_guest":0,"slug":"keshav-murthy","display_name":"Keshav Murthy","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=1636"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/18"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=1636"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}