string(JSON): Fix typo in error message

`s/then/than/` in a comparison.
2 files changed