Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 252 Bytes
from com.xhaus.jyson import JysonCodec as json
@outputSchema("business:chararray")
def tsvify(line):
business_json = json.loads(line)
business = map(unicode, business_json.values())
return '\t'.join(business).replace('\n', ' ').encode('utf-8')