HSX_E_INPUT_BAD_JSON

Typed field is not valid JSON.

What this error means

A `field:=value` argument value wasn't valid JSON.

When this error stops a command, hs-x exits with code 10. With --json, the failure is reported as a structured error whose code field is HSX_E_INPUT_BAD_JSON — stable to match on in scripts and agents.

Likely causes

  • Used := for a string value (should be =)
  • Missing quotes inside an object literal

How to fix it

  • For strings use field=value
  • For JSON use real JSON: archived:=true, tags:='["a","b"]'

Still stuck? Re-run the command with --debug for the wire-level detail, or hs-x doctor to check accounts, link state, and connectivity in one pass.