Skip to content

No JSON object could be decoded #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
beerco666 opened this issue Apr 12, 2018 · 2 comments
Open

No JSON object could be decoded #31

beerco666 opened this issue Apr 12, 2018 · 2 comments

Comments

@beerco666
Copy link

Really struggling with this every time I change my schedule. I've read the other issue like this and even copy pasted the code in the previous thread and it still didn't work. Tried the JSON editor online and it looked like I'm good.

Any Ideas?

{
"username": "TheNewMe",
"selfcontrol-path": "/Applications/SelfControl.app",
"host-blacklist": [
"Facebook.com",
"www.quora.com"
],
"block-schedules": [
{
"weekday": 1,
"start-hour": 6,
"start-minute": 0,
"end-hour": 12,
"end-minute": 0
},
{
"weekday": 2,
"start-hour": 6,
"start-minute": 0,
"end-hour": 12,
"end-minute": 0
},
{
"weekday": 3,
"start-hour": 6,
"start-minute": 0,
"end-hour": 12,
"end-minute": 0
},
{
"weekday": 4,
"start-hour": 6,
"start-minute": 0,
"end-hour": 12,
"end-minute": 0
},
{
"weekday": 5,
"start-hour": 6,
"start-minute": 0,
"end-hour": 12,
"end-minute": 0
}
]
}

@beerco666
Copy link
Author

beerco666 commented Apr 12, 2018

I think I got it to work. I was using exetendscript toolkit (which was somehow the default for me - have no idea as I never write anything and know practically nothing about modern code development) to edit and it apparently was adding something to the file that I couldn't see. I cut and pasted this to textedit into a new plain text document and saved it again and it worked.

Looking in the directory, config.json now shows up as plain text instead of JSON in the file type.

@AIRHASKI
Copy link

exetendscript toolkit

Could manage it to work still same problem. Can you explain how to solve it. I tried copying the script. and creating new config document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants