mczachurski/wallpapper

Having trouble with the JSON file.

Opened this issue · 1 comments

In the Terminal, I get this error upon running wallpapper -i wallpapper.json:

Reading JSON file: 'file:///Users/chriimoral/Desktop/Dynamic/wallpapper.json'...OK.
Decoding JSON file...Error: Unexpected error occurs: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around line 3, column 14." UserInfo={NSDebugDescription=Invalid value around line 3, column 14., NSJSONSerializationErrorIndex=19})))

I've attatched my file in case anyone knows what I did wrong. For reference, I chose the Time Based format.

First thing I see is that your file names are wrapped in curly quotes rather than straight quotes.