A dashboard can show “on” if its integration converts the text string “false” with JavaScript’s Boolean coercion. A non-empty string becomes true. The actual Boolean value false remains false. Quotation marks therefore change the data type and can change the result, even when the operator thinks the two messages say the same thing.

For an Australian factory integrating a machine-status feed, inspect the payload and the receiving transformation before replacing a sensor. RFC 8259 distinguishes JSON strings from the literal Boolean values true and false. The ECMAScript 2026 ToBoolean operation defines the conversion used in this worked example. These rules describe a particular software conversion, not the behaviour of every industrial dashboard.

Reproduce the mistake with two valid messages

The JSON object {"running":false} contains a Boolean. The object {"running":"false"} contains a string. Both are valid JSON, but they do not meet the same typed interface contract. Parsing valid JSON checks its syntax; it does not by itself prove that the running field has the intended type.

In JavaScript, Boolean(false) returns false while Boolean("false") returns true. The same issue occurs with the non-empty string "0". The table gives explicit input tokens, parsed types and conversion results. It also shows the outcome of an illustrative interface policy that accepts only actual Booleans. That policy rejects a mistyped value rather than reporting a machine state from it.

Worked decoder example. A typed Boolean false is accepted as false. A string containing the letters false is rejected by the strict Boolean contract; coercing it with JavaScript Boolean would instead return true.
Figure 1. Worked decoder example. A typed Boolean false is accepted as false. A string containing the letters false is rejected by the strict Boolean contract; coercing it with JavaScript Boolean would instead return true. Original figure by Industry Applied Editorial.

Worked data

JSON value token

Parsed type

JavaScript Boolean(value)

Strict Boolean contract

false

boolean

false

Accept false

true

boolean

true

Accept true

"false"

string

true

Reject as invalid

"0"

string

true

Reject as invalid

0

number

false

Reject as invalid

""

string

false

Reject as invalid

null

null

false

Reject as invalid

Download the worked data and units (CSV)

Validate the type before applying the status meaning

Under the illustrated contract, check that the parsed running value has type boolean. Only then use its true or false value. Treat a missing field, null, number or string as invalid input, with a visible quality state. Do not make every rejected payload look like a stopped machine: “unknown” and “off” answer different operational questions.

If a legacy device intentionally sends text, define an explicit decoder for that documented interface. State exactly which spellings, letter case and numeric strings it accepts. Keep the original value for diagnosis and emit a typed result only after validation. A broad truthiness conversion cannot express that contract because it interprets many unrelated non-empty strings as true.

Test the complete message path without controlling equipment

Use a disconnected test feed to exercise false, true, "false", "0", 0, an empty string and null. Record the raw payload, parsed type, decoded value and displayed quality. Repeat after a missing field and a reconnect. The figure compares a correctly typed false value with a string that the strict example rejects; it is not a screenshot of a live product.

Keep command handling separate from this display test. A status field does not authorise an output command, and changing a conversion should not operate plant equipment. After fixing the transformation, verify that the historian export and the operator indicator agree on value, type and quality. The useful repair is a tested message contract, rather than changing the colour of an indicator whose underlying value is still wrong.

Practical checks

  • Retain the raw JSON and inspect the parsed type.

  • Test false separately from the string "false".

  • Give invalid or missing values an explicit quality state.

  • Use a disconnected test feed and keep commands separate.

Sources and calculation method

ECMAScript 2026 — ToBoolean abstract operation

IETF RFC 8259 — JSON values and strings

Sources checked 1 December 2026. Numerical examples are illustrative calculations, not measured customer or factory results.

Cover: original AI-generated editorial illustration commissioned for this article; not a photograph or evidence of a site visit.

Related reading

Corrections and source questions: info@industryapplied.com