How do I decode multiple JSON objects from a single file in Python?
-
I have been trying to convert my json object to python object. But clearly my json.load() and json.loads() doesn't work as my file contains more than one json objects.
-
Answer:
If your json objects occur at a regular interval then you could slice those lines and then pass the string to json.load(). Check this link out http://stackoverflow.com/questions/20400818/python-trying-to-deserialize-multiple-json-objects-in-a-file-with-each-object-s
Akshay Narasimha at Quora Visit the source
Related Q & A:
- How to merge multiple CSV files into a single CSV file?Best solution by solveyourtech.com
- How will the search rank get impacted if i move my mobile website to a single page application?Best solution by Webmasters
- How do I scan multiple pages and email them into one file?Best solution by h30434.www3.hp.com
- How do I decode a movie?Best solution by Yahoo! Answers
- How do I copy multiple file names?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.