Add 'get_tables' message.
Add JSON encoding.