title: insert timestamp to json response in python
body: <p>I am trying to insert timestamp to the json curl get request and publish to pubnub  and failing to serialize to right format</p>
  
  <pre><code>#!/usr/bin/python
  
  import requests
  import json
  import sys
  import datetime
  from pubnub import Pubnub
  
  now = datetime.datetime.now()
  pubnub = Pubnub(
  publish_key = "key",
  subscribe_key = "my_key")
  channel = "my_channel"
  
  payload = {'Postman-Token': 'sometoken', 'title': "pythontest"}
  message = requests.get("http://localhost:8080/",   data=json.dumps(payload))
  </code></pre>
  
  <p><code>print.message.text</code> gives <code>{"code":"200","message":"Success","itemCount":0,"items":[]}</code></p>
  
  <p>I would like to add time stamp to the above message and would like the result to be like this: <code>{"code":"200","message":"Success",date:"2016-07-31 15:26"}</code></p>
  
  <pre><code>print now.strftime("%Y-%m-%d %H:%M")
  timestamp=str(now.strftime("%Y-%m-%d %H:%M"))
  
  print message.text,now.strftime("%Y-%m-%d %H:%M")
  Hello = str(message.text)
  
  pubnub.publish(
  channel = channel,
  message = (Hello,timestamp))
  </code></pre>
  
  <p>But, when I publish it to pubnub, the result looks like this. </p>
  
  <pre><code>[u'{"code":"200","message":"Success","itemCount":0,"items":[]}', u'2016-07-31 15:26']
  </code></pre>
  
  <p>Please help</p>