#1338·arktype

add `json` and `json.stringify` keywords

Author: adamhl8Created Mar 4, 2025Updated Jun 23, 2026
Labelsexternal-contributor-friendlyconfirmed

Currently there is no general json type to validate that a given value can be correctly serialized to JSON. I think top-level json and json.stringify keywords would be very useful.

Related to #1337 but this keyword should reject anything that isn't assignable to the internal Json type.