Answer the question
In order to leave comments, you need to log in
How to extract json from a string?
Hello everyone
, there is a line like this:
"tru la la - opugali maclhuka , ia iadfat {'Name':'Mister', 'Seconde Name': 'Bin'} dfhfg oh oh klA"
Answer the question
In order to leave comments, you need to log in
secure - nothing.
find the first occurrence of "{" and the last "}" either through strings.Index or through regular expressions and try to parse as json.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question