0

I have a list of objects:

obj_map = [ 
    {"editable": "true", "col_name": "numberEnds", "display": "true"},
    {"editable": "false", "col_name": "id", "display": "false"},
    {"editable": "true", "col_name": "store_code", "display": "true"},
    {"editable": "true", "col_name": "store_id", "display": "true"}

              ]

Which generates the following error:

{"editable": "true", "col_name": "numberEnds", "display": "true"},
            ^
SyntaxError: invalid character in identifier

Why is whitespace being interpreted as an invalid character in this scenario?

DariusFontaine
  • 682
  • 1
  • 4
  • 20

0 Answers0