Fix json codec

Json codec should now properly parse json hashes delimited by newline.