Error: Missing source file for JSON

I am not sure if the problem persists, but I will try to answer for other people with the same problem.

Following the discussion here.

JSON package might be borked. Remove the JSON package from .julia/packages and then try installing JSON again.

To avoid this problem is recommended to use environments.

I was facing a similar problem and I removed completely .julia directory. Installing again the desired package worked