The JSON API specification uses a dictionary like syntax for some query parameters:
GET /articles?include=author&fields[articles]=title,body,author&fields[people]=name HTTP/1.1
Is there any easy way to retrieve the above fields
parameter as a dictionary using Pyramid?
To provide further details, the following fields
parameters are given:
fields[articles]=title,body,author
fields[people]=name
I'd like to get them all in a Python dictionary:
fields = {
'articles': 'title,body,author',
'people': 'name',
}