complete to_json method for assocation objects