Python Forum
JSON file Loading issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JSON file Loading issue
#5
@0LI5A3A, it's an old thread but because you necro-post - there is nothing wrong with using double backslash in path - this will escape the backslash in windows path. Basically there are three ways to do it:
  • using raw-string
  • using double backslash, to escape the backaslash and possible escape sequence.
  • using forward slash, like you suggest.

In addition - the traceback show that the file is found (i.e. no problem with path) and there is problem with the content of the file.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
JSON file Loading issue - by punna111 - Aug-27-2018, 01:55 PM
RE: JSON file Loading issue - by buran - Aug-27-2018, 02:10 PM
RE: JSON file Loading issue - by rootVIII - Aug-27-2018, 08:35 PM
RE: JSON file Loading issue - by 0LI5A3A - Jun-28-2020, 10:58 PM
RE: JSON file Loading issue - by buran - Jun-29-2020, 08:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP! Importing json file into csv into jupyter notebook vilsef 2 2,594 Jan-22-2021, 11:06 AM
Last Post: snippsat
  Loading multiple JSON files to create a csv 0LI5A3A 0 2,116 Jun-28-2020, 10:35 PM
Last Post: 0LI5A3A
  Indirectlty convert string to float in JSON file WBPYTHON 6 5,968 May-06-2020, 12:09 PM
Last Post: WBPYTHON
  Help batch converting .json chosen file to MySQL BrandonKastning 2 2,362 Mar-14-2020, 09:19 PM
Last Post: BrandonKastning
  memory issue loading movie to numpy array djf123 1 2,318 Nov-07-2019, 06:19 AM
Last Post: ThomasL
  save my sensor data from the bme680 into a json or csv file Plastefuchs84 1 3,157 Aug-23-2019, 03:04 AM
Last Post: Plastefuchs84
  loading a csv file into python from pandas. Variable is not recognized vijjumodi 2 2,935 Apr-19-2019, 04:09 AM
Last Post: kus
  Merge JSON files prioritizing the updated values from most recent file nebulae 0 2,551 Apr-17-2019, 10:15 AM
Last Post: nebulae
  reading, modifying and writing json file metalray 2 10,957 Jun-06-2018, 03:09 PM
Last Post: metalray
  Issue in getting the required data from nested json and store it in a pandas datafram PrateekG 2 3,322 May-20-2018, 11:25 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020