Description
Parse firstJson and secondJson, require both values to be scalars, and compare with strict equality.
JSON distinguishes null, strings, numbers, Booleans, arrays, and objects. Parsing a token produces a value whose type can differ from its apparent textual spelling.
Parse firstJson and secondJson, require both values to be scalars, and compare with strict equality.
When to use this tool
Use JSON Patch Test Number String Type Inequality when you need one bounded JSON value classification or wrapper operation.
How to use the tool and how it works
- Enter firstJson, secondJson. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read equal. Inspect equal before interpreting the associated values.
Parse firstJson and secondJson, require both values to be scalars, and compare with strict equality.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstJson | First Json | Required. Text; maximum UTF-16 length 8192. |
| secondJson | Second Json | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| equal | Equal | Required. Boolean. |
{
"input": {
"firstJson": "1",
"secondJson": "\"1\""
},
"output": {
"equal": false
}
} Limitations and assumptions
- Number and string values differ even with similar text; this does not implement recursive JSON Patch equality for objects or arrays.
- 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
Use a full document parser and the consuming schema when complete validation or exact numeric preservation is required.
References
Similar or alternative tools
- JSON: JSON Scalar Type Tag
Parse valueJson, reject arrays and objects, and return null, boolean, number, or string as the scalar type.
- JSON: JSON Empty String Versus Missing Tag
Parse objectJson as an object and classify the literal key as missing, empty-string, null, or other using own-property presence before value checks.