atdml: support normalize_jsonlike in module-based JSON adapters
When <json adapter.ocaml="M"> is used, of_jsonlike now calls
M.normalize_jsonlike before deserialization, mirroring the M.normalize
call in of_yojson. The function name is intentionally different to
avoid conflicts with the Yojson adapter interface.
Only module-based adapters are supported for jsonlike; inline adapters
(adapter.to_ocaml / adapter.from_ocaml) are not supported and continue
to be silently skipped for the jsonlike path.
Implementation: the mode record's supports_json_adapters:bool field is
replaced with normalize_of_adapter:(json_adapter -> string option), so
each mode knows how to derive its normalize expression from an adapter.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
203aee
-
Mar 30 07:55 +00:00