# Does anyone know JSON here?

**URL:** <https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749>\
**Category:** Off-topic\
**Created:** [April 25, 2021, 9:03am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749 "2021-04-25T09:03:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaarakVakil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/taarakvakil/32/13203_2.png) [@TaarakVakil](https://forums.thimbleweedpark.com/u/TaarakVakil)\
**Post date:** [April 25, 2021, 9:03am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/1 "2021-04-25T09:03:49Z")

</div>

I am trying to run a discord bot… i got the source code from here - [thanrek/Scranton-Guesser: A Python Discord bot that turns quotes from a series to screenshots (github.com)](https://github.com/thanrek/Scranton-Guesser)  
I downloaded all the pip packages that were needed… but my file path for the videos folder is like  
D:\Movies\The Office\The Office (US) (2005) Season 1-9 but when i put this in the json file it says invalid escape character or something… does anyone have any idea on how to fix this?

 ![json error](https://canada1.discourse-cdn.com/flex030/uploads/thimbleweedpark/original/2X/c/cdbcda5f5edf78ac64018175501435c8b3a5a855.png)

---

<div class="post-metadata">

**Author:** ![DanielWolf](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/danielwolf/32/42_2.png) [@DanielWolf](https://forums.thimbleweedpark.com/u/DanielWolf)\
**Post date:** [April 27, 2021, 8:14am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/2 "2021-04-27T08:14:45Z")

</div>

In a JSON string, you need to escape backslashes by adding a second backslash before them. So “D:\Movies\The Office” becomes “D:\Movies\The Office”.

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [April 27, 2021, 8:21am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/3 "2021-04-27T08:21:48Z")

</div>

> [@DanielWolf](#):
>
> "D:\Movies\The Office”

You mean:

"D:\\Movies\\The Office”

(Discourse needs another backslash too ;-))

---

<div class="post-metadata">

**Author:** ![DanielWolf](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/danielwolf/32/42_2.png) [@DanielWolf](https://forums.thimbleweedpark.com/u/DanielWolf)\
**Post date:** [April 27, 2021, 8:28am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/4 "2021-04-27T08:28:45Z")

</div>

You got me there. 😄

---

<div class="post-metadata">

**Author:** ![TaarakVakil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/taarakvakil/32/13203_2.png) [@TaarakVakil](https://forums.thimbleweedpark.com/u/TaarakVakil)\
**Post date:** [April 27, 2021, 5:08pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/5 "2021-04-27T17:08:33Z")

</div>

I tried them but then it showed "D:\Movies\The Office” filepath not found  
Thanks to both of you though…

---

<div class="post-metadata">

**Author:** ![Festarossa](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/festarossa/32/15_2.png) [@Festarossa](https://forums.thimbleweedpark.com/u/Festarossa)\
**Post date:** [April 27, 2021, 5:42pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/6 "2021-04-27T17:42:17Z")

</div>

I think the space is the problem there. Replacing it with underscore could help.

---

<div class="post-metadata">

**Author:** ![flesk](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/flesk/32/12831_2.png) [@flesk](https://forums.thimbleweedpark.com/u/flesk)\
**Post date:** [May 1, 2021, 6:04am UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/7 "2021-05-01T06:04:08Z")

</div>

I wonder when Microsoft are going to come to their senses, and stop using escape characters as path separators. It’s never not going to cause problems.

---

<div class="post-metadata">

**Author:** ![Frenzie](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/frenzie/32/4416_2.png) [@Frenzie](https://forums.thimbleweedpark.com/u/Frenzie)\
**Post date:** [May 1, 2021, 4:03pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/8 "2021-05-01T16:03:45Z")

</div>

You can almost always use `d:/movies/the office` as well.

---

<div class="post-metadata">

**Author:** ![TaarakVakil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/taarakvakil/32/13203_2.png) [@TaarakVakil](https://forums.thimbleweedpark.com/u/TaarakVakil)\
**Post date:** [May 1, 2021, 6:02pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/9 "2021-05-01T18:02:53Z")

</div>

Tried this too… but it didn’t work

---

<div class="post-metadata">

**Author:** ![TaarakVakil](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.thimbleweedpark.com/taarakvakil/32/13203_2.png) [@TaarakVakil](https://forums.thimbleweedpark.com/u/TaarakVakil)\
**Post date:** [May 1, 2021, 6:04pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/10 "2021-05-01T18:04:26Z")

</div>

Yeah i used to like Microsoft… but their decision are pissing me off sometimes… for example i have Halo MCC on steam… and i can’t play Multiplayer properly due to their outdated IP protocol called Teredo or something and there is no way to fix it either… I am seriously thinking of switching to Linux

---

<div class="post-metadata">

**Author:** ![Someone](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Someone](https://forums.thimbleweedpark.com/u/Someone)\
**Post date:** [May 3, 2021, 2:14pm UTC](https://forums.thimbleweedpark.com/t/does-anyone-know-json-here/4749/11 "2021-05-03T14:14:42Z")

</div>

> [@Frenzie](#):
>
> You can almost always use `d:/movies/the office` as well.

Depends on the program/library that interprets the JSON file.
