Fix Json-CRITICAL assertion