This question is pretty narrow, but here we go:
data = {
'details': [
[
{'quick_event': 'Quick'},
{'advance_event': 'Advanced'}
],
[
{'help': 'Help'}
]
],
'has_car': True,
'has_payment': False
};
>>> data
{'details': [[{'quick_event': 'Quick'}, {'advance_event': 'Advanced'}], [{'help': 'Help'}]], 'has_car': True, 'has_payment': False}
In a nutshell:
- Convert
=>to: - Convert
[]to {}for cards.
source
share