4 ms·
These schema are just applied uses of JSON and not modifications. But XML was perverted due to its inherent extensibility, The JSON syntax hasn't changed: scal
by staycoolboy 6y ago
These schema are just applied uses of JSON and not modifications.
But XML was perverted due to its inherent extensibility, The JSON syntax hasn't changed: scalars, arrays, associative arrays. That's all! So it has remained "pure" so to speak.
Fortunately the only issue I've run into with JSON is lack of proper NAN and NULL support, but that is largely a limitation of the language's implementation (can't support NULL if you ain't got a NULL!).
- recursive 6y agoJSON has null. https://www.json.org/json-en.html https://www.json.org/json-en.html The main thing I miss is dates.
- staycoolboy 6y agoYes, it has null, but when you parse it with, say, Boost::property_tree, null is 0, which is not true null because there is no true null in C++. Language limitation. Cool link, btw. For all the years I've been using JSON I never visited the main page!
- jobigoud 6y agoSo that's not a problem in JSON. Why can't the library output nullptr?
- staycoolboy 6y agonullptr isn't "null", it's a null POINTER. In languages with a NULL type, and variable can be a NULL. E.g., in python you can say "x = null; x = 1;" in C++ you cannot say "int i = nullptr".
- visarga 6y agocomments would be nice