–EDIT
json file must be
{ "abc":"hello" }
–EDIT
json file must be
{ "abc":"hello" }
Thank you for your advice :).
I found the error. Loaded the sample.json and compared to my own .json file.
The syntax of my abc.json file was wrong.
My code was working at all.
Edit: Ah, now you’ve seen it, too.
Thanks.
For future reference, if you’re editing JSON data by hand, it’s a good idea to use a validator like JSONLint (http://jsonlint.com/) to check that you don’t have any syntax errors.
Thanks, didn’t thought that for .JSON there is something like that. Used something similar always for HTML :).
If you are using editor like notepad++ or sublime text then there are also plugins for friendly formatting json files, if it will help you 