adding Json() convenience method to User