setJsonControlsFromMap

Sets JSON controls from a flat map of key → JSON-string pairs.

Invalid JSON (rejected by JsonControlIfc.value setter) is caught per entry, logged as a warning, and skipped — the remaining valid entries continue to be applied.

Return

the number of controls successfully set