In general:
As a data provider, I will consider strengthening the system type conversion before outputting JSON. Especially when the document has clearly marked the type.
As the data recipient, I will also do data shaping before processing.
Conclusion: First, there is no unification, and if there are problems, then friendly negotiation. If you have to change it, either pdo is configured in a unified way, or you can change it one by one. JSON_NUMERIC_CHECK