Object of type is not json serializable. Json dart. parse dart. json to string flutter. c=list(map(str(n))) (int,2).