I am currently developing a filter for JSON responses. I am basically confused as to why the printing in truth is false as this is true in value code.
As you said, return I A simple test is done: in your pocket it will print: If you want to be json.dumps (json_obj ['tracks'] [3] ['name'])
"in your pocket"
..., while you are comparing it with the string without quotation marks.
print "//" + json.dumps (json_obj ['tracks'] [3] ['name']) "" // "print" // // "
//" in your pocket "// // in your pocket at //
true_value
to be true
you should do
true = value = Json.dumps (json_obj ['tracks'] [3] ['name']) == "\" in your pocket \ ""
Comments
Post a Comment