I'm comming from php where $_GET [ 'filter' ]
on a url such as example.com/?filter[0][field]=username&filter[0][data][type]=string&filter[0][data][value]=someusername
will return an array which can be parsed as:
foreach ( $_GET [ 'filter' ] as $k => $field ) {
$fieldName = $field [$k] [ 'data' ] [ 'field' ];
$fieldType = $field [$k] [ 'data' ] [ 'type' ];
$fieldValue = $field [$k] [ 'data' ] [ 'value' ];
// do something with the values
}
Question is....how do I parse them in python in such way?
I cannot access request.args.get( 'filter', None )
but I have results on request.args.get( 'filter[0][field]', None )