|
Given one line from the EdX Track log, produce one row of relational
output. Return is an array of values, the same that is passed in. On the
way, the partne JSONToRelation object is called to ensure that JSON
fields for which new columns have not been created yet receive a place in
the row array. Different types of JSON records will be passed: server
heartbeats, dashboard accesses, account creations, user logins. Example
record for the latter:
"username": "",
"host": "class.stanford.edu",
"event_source": "server",
"event_type": "/accounts/login",
"time": "2013-06-14T00:31:57.661338",
"ip": "98.230.189.66",
"event": "{
"POST": {},
"GET": {
"next": ["/courses/Medicine/HRP258/Statistics_in_Medicine/courseware/80160e.../"]}}",
"agent": "Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101
Firefox/21.0",
"page": null}
- Parameters:
jsonStr (String) - string of a single, self contained JSON object
row (List<<any>>) - partially filled array of values. Passed by reference
- Returns: [<any>]
- the filled-in row
- Overrides:
generic_json_parser.GenericJSONParser.processOneJSONObject
|