Fixed split_stmt_list method using json library