Adding userId to the JSON output created.