--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/790b2c45-edc8-4528-9faa-4cecfc072626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec7f326d-1e10-40be-9e75-8363d2ffde6f%40googlegroups.com.
OK here goes. The logic in the routine which I actually doing the modification to each individual JSON response looks like this:
if str(objctTyp) == 'user':
rspnsdata['name'] = lstobjct['name']
rspnsdata['id'] = lstobjct['id']
The routine which is doing this is receiving parameter data that looks like this when printed in string format in the windows command prompt window:
The following piece of parameter data is actually what came back as my JSON response from the current secondary request that the application sent.
rspnsdata=
{
u'participations': [],
u'page_views':
{
u'2015-02-05T00:00:00-06:00': 1,
u'2015-03-02T23:00:00-06:00': 1,
u'2015-01-24T19:00:00-06:00': 1,
u'2015-02-08T13:00:00-06:00': 1,
u'2015-01-28T19:00:00-06:00': 1,
u'2015-01-20T19:00:00-06:00': 1,
u'2015-02-19T10:00:00-06:00': 2,
u'2015-02-21T17:00:00-06:00': 1,
u'2015-02-02T13:00:00-06:00': 1,
u'2015-02-16T13:00:00-06:00': 1,
u'2015-02-01T23:00:00-06:00': 2,
u'2015-02-03T12:00:00-06:00': 2
}
}
The following bit of parameter data was actually passed in as the data for the current student which the latest secondary request was sent for and whose associated data JSON data is shown above.
lstobjct=
{
'name': 'Brennan Kennedy',
'id':'8202'
}
The following parameter data type "user" indicates that 'name' and 'id' key data is passed in in the 'lstobjct' parameter and those key value pairs will be added to the received JSON data.
objctTyp=
user
Hope this helps.
Thanks.
Henry
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4e0b9d7b-b3a9-4d8a-9c88-75ebcc9765fb%40googlegroups.com.