When I use the https://en.wikipedia.org/api/rest_v1/transform/wikitext/to/lint API, I see, e.g.:
Object { "dsr": Array [ Number(150414), Number(150421), Null, Null, ], "params": Object { "name": String("font"), }, "templateInfo": Null, "type": String("stripped-tag"), }, Object { "dsr": Array [ Number(154384), Number(156793), Null, Null, ], "params": Array [], "templateInfo": Object { "multiPartTemplateBlock": Bool(true), }, "type": String("night-mode-unaware-background-color"), },
Note that in one case, it's a JSON object, i.e. {}, and in another it's an array, []. As far as I can tell, the night mode lint is the only one with an array. We probably just need to cast the empty array to an object first.