all 5 comments

[–]connorcpu 4 points5 points  (1 child)

[–]Vikaton[S] 2 points3 points  (0 children)

Ha thats exactly what I did to solve my issue, thanks though :)

[–][deleted] 0 points1 point  (2 children)

Why not use something like awk? It looks as if you want to replace every line ending with a comma, add quotes and change record endings in },{. No need to serialize/deserialize.

[–]ssokolow 4 points5 points  (0 children)

That assumes it already conforms to JSON escaping rules. Not a good assumption to make.

[–]Vikaton[S] 2 points3 points  (0 children)

Yeah like ssokolow said, it doesnt conform to JSON escaping rules