Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected character encountered while parsing value: . Path '', line 0, position 0. #25

Open
ghost opened this issue Jan 4, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2015

Hi, a have a valid json file. But in this error is a problem

        if (!(typeof(TEntity) == typeof(Image)))
        {
            string json = blob.DownloadText();
            item = JsonConvert.DeserializeObject<TEntity>(json);
        }

validation. Is there possible solving this ?

@relkins
Copy link

relkins commented Feb 19, 2015

I had this problem - it turns out there were a bunch of hidden characters that didn't show up when I opened the file in something like notepad but were being served in the file delivered by blob storage. Set your container to be publically accessible and hit the URL for your settings.json file - my guess is you'll see it come back with a bunch of weird characters that didn't show up before.

The solution would be to cut the text from your file and paste in into a BRAND NEW text file, then upload that.

@taozifly
Copy link

这里的问题 估计是 blob对象问题,你要确定blob对象是一个可序列化的对象,你可以监视blob对象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants