0

I have a list of dicts:

          for item in list:
          listDicts.append(item.AsDict())

How convert listDicts to json string, using simplejson ? Making the list each dictionary will be an object in JSON.

Mauro Alexandre
  • 133
  • 2
  • 7

1 Answers1

2

Have you tried json.dumps(listDicts)? It comes out of the box. I'm not sure what simplejson would buy you; in fact, I think they're the same thing.

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365