Missing call to close_title method added, #4 fixed
Added glib-based JSON escaping to JSON output module, fix #3