json-encode the 'user' variable passed into the View