Hello I'm using python marshmallow package to convert a json file into python objects. However the one of the keys contains special character.
from marshmallow import Schema
fakeJson = {"A":"33","$C":"12"}
class tempA:
def __init__(self,
A = None):
self.A = A
class tempASchema(Schema):
model = tempA
A = fields.Str()
result=tempASchema().load(fakeJson)
I'm trying to convert the element "$C" into a variable. but I don't know how to deal the special character "$".
Thanks in advance.