A
A
Amigun2019-05-21 22:03:36
Python
Amigun, 2019-05-21 22:03:36

How to filter json and get value of given key?

I have some variable - response, which receives json
To get this same json, I use

data = response.json()
print(data)

And so, there is a key like How do I get the value of text in its purest form? So that in the end, just see the text "The same text"?
'text': 'Тот самый текст'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FulTupFul, 2019-05-21
@FulTupFul

data.get('text')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question