Making AI predictable: The key role of JSON schema