Skip to content

Main content

JSON Literal Case Sensitive Token Tool

Calculate json literal case sensitive token from explicit caller-supplied inputs.

Loading tool…

Description

Recognize only exact lowercase null, true, and false tokens.

A JSON lexeme is its textual spelling, which differs from the decoded value. Escapes, quotes, raw control characters, and surrounding whitespace must be interpreted in context.

Recognize only exact lowercase null, true, and false tokens.

When to use this tool

Use JSON Literal Case Sensitive Token when you need a narrowly defined JSON string or separator diagnostic.

How to use the tool and how it works

  1. Enter token. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read valid, kind. Inspect valid before interpreting the associated values.

Recognize only exact lowercase null, true, and false tokens. Return null or boolean for recognized kind, otherwise invalid.1

Input fieldMeaning and unitsAccepted input
tokenTokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
validWhether this narrowly scoped condition passes; it is not necessarily full-document validity.Required. Boolean.
kindKindRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "token": "TRUE"
  },
  "output": {
    "valid": false,
    "kind": "invalid"
  }
}

Limitations and assumptions

  • Surrounding whitespace and alternative case fail this exact-token check even where document-level whitespace could be accepted.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Parse the entire document when validity matters; a local pattern match cannot establish complete JSON syntax.

References

  1. Calculation and input contract: json/json-literal-case-sensitive-token — tool.io

Similar or alternative tools