View the original community article here
Last tested: Nov 1, 2018
One reason could be a non-utf8 character in the file. This would result in a log message similar to
JSON::GeneratorError : source sequence is illegal/malformed utf-8
From the Linux command line, this command will show lines containing non-utf8 characters
grep -axv '.*' file.txt
file.txt is replaced with myview.lkml , for example.
Another possible reason you should keep in mind is browser extensions, especially Add blockers like ABP can prevent a file from being loaded. This usually happens if the file contains dimensions/measures related to advertisement or ads.