fix unclosed json block