{"action":"created","issue":{"url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/6","labels_url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/6/comments","events_url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/6/events","html_url":"https://github.com/tvdstaaij/telegram-json-backup/issues/6","id":111230086,"number":6,"title":"Parsing file","user":{"login":"sgarro","id":7337556,"avatar_url":"https://avatars.githubusercontent.com/u/7337556?v=3","gravatar_id":"","url":"https://api.github.com/users/sgarro","html_url":"https://github.com/sgarro","followers_url":"https://api.github.com/users/sgarro/followers","following_url":"https://api.github.com/users/sgarro/following{/other_user}","gists_url":"https://api.github.com/users/sgarro/gists{/gist_id}","starred_url":"https://api.github.com/users/sgarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgarro/subscriptions","organizations_url":"https://api.github.com/users/sgarro/orgs","repos_url":"https://api.github.com/users/sgarro/repos","events_url":"https://api.github.com/users/sgarro/events{/privacy}","received_events_url":"https://api.github.com/users/sgarro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T17:33:40Z","updated_at":"2015-10-13T19:15:20Z","closed_at":null,"body":"Hi there. \r\nSo, I've never used a Json Lines file and there isn't much documentation.\r\nI got a >100k messages backup file and i want to parse it with python so i can search and stuff, but i don't know how to do it"},"comment":{"url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/comments/147819821","html_url":"https://github.com/tvdstaaij/telegram-json-backup/issues/6#issuecomment-147819821","issue_url":"https://api.github.com/repos/tvdstaaij/telegram-json-backup/issues/6","id":147819821,"user":{"login":"tvdstaaij","id":8502790,"avatar_url":"https://avatars.githubusercontent.com/u/8502790?v=3","gravatar_id":"","url":"https://api.github.com/users/tvdstaaij","html_url":"https://github.com/tvdstaaij","followers_url":"https://api.github.com/users/tvdstaaij/followers","following_url":"https://api.github.com/users/tvdstaaij/following{/other_user}","gists_url":"https://api.github.com/users/tvdstaaij/gists{/gist_id}","starred_url":"https://api.github.com/users/tvdstaaij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvdstaaij/subscriptions","organizations_url":"https://api.github.com/users/tvdstaaij/orgs","repos_url":"https://api.github.com/users/tvdstaaij/repos","events_url":"https://api.github.com/users/tvdstaaij/events{/privacy}","received_events_url":"https://api.github.com/users/tvdstaaij/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T19:15:20Z","updated_at":"2015-10-13T19:15:20Z","body":"There's not much documentation about it because there's not much to say, really :) It's just a text file with one JSON object per line. So you just [read the file line by line](https://stackoverflow.com/questions/8009882/how-to-read-large-file-line-by-line-in-python) and use [`json.loads`](https://docs.python.org/3/library/json.html) on each line. You then have a Python dictionary that you can use as you wish. To see what fields you can read from the dictionary, paste some lines of the jsonl file (one at a time) in [some](http://json.parser.online.fr/) [online](http://jsonviewer.stack.hu/) [json](http://codebeautify.org/jsonviewer) [beautifier](https://jsonformatter.curiousconcept.com/)."}}