I got the Json \"false\" from server. I respond as bool but it\'s Json so it\'s in browser type is String instead of bool
\"false\"
bool
String
Try expression data == "true"
Tests:
data = "false" -- value will be false
date = "true" -- value will be true
Also, fix your JSON. JSON can handle booleans just fine.