#NEWLINE# def to_json( self ) : #NEWLINE# #INDENT# 'Serializes this MapperSpec into a json-izable object.' #NEWLINE# result = { #NEWLINE# #INDENT# 'mapper_handler_spec' : self . handler_spec , #NEWLINE# 'mapper_input_reader' : self . input_reader_spec , #NEWLINE# 'mapper_params' : self . params , #NEWLINE# 'mapper_shard_count' : self . shard_count , #NEWLINE# #UNINDENT# } #NEWLINE# if self . output_writer_spec : #NEWLINE# #INDENT# result [ 'mapper_output_writer' ] = self . output_writer_spec #NEWLINE# #UNINDENT# return result