I have a PHP script and want to write that in Python. So, How can I convert this nested PHP Array to nested python dictionary?
$data = [
'details'=> [
[
['quick_event'=> 'Quick'],
['advance_event'=> 'Advanced']
],
[
['help'=> 'Help']
]
],
'has_car'=> true,
'has_payment'=> false
];
I created this in Python but it's wrong:
data = {
'details': {
{
{'quick_event': 'Quick'},
{'advance_event': 'Advanced'}
},
{
{'help': 'Help'}
}
},
'has_car': True,
'has_payment': False
}