Because it's common for Arduino sketches to only consist of a single .ino file, it's a common mistake to assume they are all this way. But sketches may consist of multiple files. It's actually the folder that is the sketch, not the .ino file.
The espCode sketch is one of these multi-file sketches, as you can see here:
The error is caused by you only downloading the .ino file, leaving behind the essential json.h file of the sketch.
If done correctly you will see as in the photo below, the two tabs at the top of your sketch.
The reason it is done this way is many program add ons such as the json file may change from time to time and the sketch may no longer work. This way, with the file included, all good.