3 ms·
Most document databases have JSON editors, which are very useful at times but don't have any schema checks. By "typed language" I suppose you mean "statically
by john-shaffer 6y ago
Most document databases have JSON editors, which are very useful at times but don't have any schema checks.
By "typed language" I suppose you mean "statically typed language". This isn't relevant because A) JSON types exist and B) I've never had a problem with unexpected types from user data in a dynamic language, not even in PHP.
> Otherwise, how is this not caught when it enters your system?
It should be caught, and it's very important that it be caught all of the time and not have any issues due to bugs or version mismatches. That's why the schema should live in the DB.