ron <r...@mailinator.com> added the comment:

Raymond Hettinger answer is incorrect.

The main difference between Json and new line delimited json is that new line 
contains valid json in each line. Meaning you can do to line #47 and what you 
will have in this line is a valid json. Unlike the regular json where if one 
bracket is wrong the while  file is unreadable. 

You can not just add /n after one "object". You need also to change the 
brackets.

Keep in mind that not all Jsons are simple.. some contains huge amount of 
nested objects inside of them. You must identify where Json start and where it 
ends without being confused by nesting jsons.


There are many programming solutions to this issue.
For example:
https://stackoverflow.com/questions/51595072/convert-json-to-newline-json-standard-using-python/


My point is that this is a new format which is going to be widely accepted 
since Google adopted it for BigQuery.

flipping strings can also be easily implemented yet Python still build a 
function to do that for the user.

I think it's wise to allow support for this with in the Json library.. saving 
the trouble for programmer from thinking how to implement it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34529>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to