function get_json