mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.31k stars 137 forks source link

Having trouble with the JSON file. #77

Open ChriiMoral opened 7 months ago

ChriiMoral commented 7 months ago

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.

COV-Steve commented 7 months ago

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