"Mark FIELD as `:json` if it's textual, doesn't already have a special type, the majority of it's values are non-nil, and all of its non-nil values
are valid serialized JSON dictionaries or arrays."
[driverfieldfield-stats]
(if-not(and(not(:special_typefield))
(not(isa?(:base_typefield):type/Text)))
(if(or(:special_typefield)
(not(isa?(:base_typefield):type/Text)))
;; this field isn't suited for this test
field-stats
;; check for json values
...
...
@@ -134,14 +134,8 @@
(log/debug(u/format-color'green"Field '%s' looks like it contains valid JSON objects. Setting special_type to :type/JSON."(field/qualified-namefield)))
(log/debug(u/format-color'green"Field '%s' looks like it contains valid email addresses. Setting special_type to :type/Email."(field/qualified-namefield)))