title: How to get dict value from bottle server using python
body: <p>I wrote this server code:</p>
  
  <pre><code>from bottle import run, route, get, post, request, template
  import json
  import socket
  import os
  import time
  
  
  @route('/')
  @route('/RegisterMessage/&lt;message_type&gt;', method='GET')
  def reg_msg_type(message_type):
      print "Suscribe to", message_type, 'messages'
      if message_type == 'time':
          time = dict()
          time['utc_time'] = 123456
          time['time_zone'] = -120
          return time
  
  #configuring host, port.
  run(host='192.168.0.119', port=8088, debug=True)
  </code></pre>
  
  <p>When I go to <a href="http://192.168.0.119:8088/RegisterMessage/time" rel="nofollow noreferrer">http://192.168.0.119:8088/RegisterMessage/time</a> in my browser, I get this response:</p>
  
  <pre><code>{"time_zone": -120, "utc_time":123456}
  </code></pre>
  
  <p>Now I want to write a client in python which will retrieve those values from my server. I am unable to find anything related to this in the documentation for bottle.</p>