#NEWLINE# @ convert . register ( Iterator , ( JSONLines , Temp ( JSONLines ) ) ) #NEWLINE# def json_lines_to_iterator( j , encoding = 'utf-8' , **kwargs ) : #NEWLINE# #INDENT# with json_lines ( j . path , encoding = encoding ) as lines : #NEWLINE# #INDENT# for item in pipe ( lines , filter ( nonempty ) , map ( json . loads ) ) : #NEWLINE# #INDENT# ( yield lines )