How to get specific information from json | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get specific information from json

I have a complex json data I'm trying to extract all text data how can I do this using python Here is an example of the json data { “type” : arr, “value” : -[ -{ “type” : obj, “value” : -{ “type” : paragraph, “content” : -{ “type” : arr, “value” : -[ -{ “type” : obj, “value” : -{ “text” : We need to choose a page build}

18th Jun 2021, 7:46 AM
Sudo
Sudo - avatar
3 Answers
+ 2
Chidera , i used 2 json online validators, both of them stated "parse errors". may be you can check if you have posted the original version? thanks!
18th Jun 2021, 10:10 AM
Lothar
Lothar - avatar
+ 1
u can work with json library just import it and use it
18th Jun 2021, 12:50 PM
Hasan
Hasan - avatar