python - Return JSON object problems -


मेरे पास ये पंक्तियाँ हैं:

  r = requests.post (url, data = json  

मुझे इस प्रतिक्रिया के लिए कहां मिलता है: < / P> <पूर्व> [[u'sort ': [1414496113003], यू'टाइप': u'syslog ', u'_index': u'logstash-2014.10.28 ', u'_score': कोई नहीं , यू 'फ़ील्ड': {u '@ टाइमस्टैम्प': यू'2014-10-28 टी 11: 35: 13.003, 'यू'सिसॉग_होस्टनाम': यू'होस्टनाम '}, यू'आईडी': यू'केक 9 डीएचवीआरसीएसएमएमटीआरएसआर 9 वीजेन्रा '}] < / कोड>

मुझे केवल "@स्टिमस्टैम्प" प्राप्त करने की आवश्यकता है मैं कैसे प्रबंधित करूं? मुझे लगता है कि मुझे प्रिंट (json_output ["हिट"] ["हिट"]) के लिए और करना होगा ?

  प्रिंट json_output [0] ['फ़ील्ड'] ['@ टाइमस्टैम्प']  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -