In ::getJson: use mixed return type.