Correct token counting when calling with JSON schema

This is not true. This was the first thing I tried. The difference is in thousands of tokens.
This is not how it is calculated at all. The JSON scheme is serialized according to some internal, undocumented principles.
I know about TikToken, but the question is exactly how to calculate the JSON scheme.