channel_server: convert SDPs and candidates to JSON and vice versa