Share via


Unable to open JSON file as it exceeds the 5 MB limit for the JSON editor

Question

Sunday, June 21, 2015 3:54 PM | 2 votes

For my Windows 8.1 universal app, my source data stored in JSon file exceeds the 5MB limit for the JSON editor and therefore my app fails to initialize. Now I cannot run both my Windows phone 8.1 and Windows 8.1 app. Also, now when I open my JSON file for editing, the VS 2013 JSON editor does not allow me to add more data to it. Anyone encountered this issue before? Any idea on how to increase the 5MB limit, or split the file into multiple files, and yet let the application use it as one big JSon file?

All replies (6)

Saturday, June 27, 2015 4:05 AM âś…Answered

Added the feedback about this issue to Microsoft Connect feedback portal: https://connect.microsoft.com/VisualStudio/feedbackdetail/view/1465015/unable-to-open-json-file-as-it-exceeds-the-5-mb-limit-for-the-json-edito

@ James/Tina: Appreciate if you two can vote for it so that MS team can understand that this issue is a repro.


Monday, June 22, 2015 6:22 AM | 1 vote

Hi Aiseduk,

I was able to reproduce the issue by a json file which larger than 5MB.

Personally I think this could be a Visual Studio issue, the Visual Studio does have limitation for 5MB. I will move the thread to VS general forum to see if they can have a better solution for you.

Programmatically speaking, there is some third party libraries that can help you merge two or more JSON file into one, but you have to find by yourself. Furthermore you can think about put the data into local database if the data volume is large.

--James

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Monday, June 22, 2015 8:20 AM

Appreciate any help on this, James. This came as a bummer for me. Basically, I would prefer to keep one file even if the data volume is large. 

I am not able to find any other thread that can help me resolve this issue. Is that a known issue with VS 2013?


Tuesday, June 23, 2015 9:32 AM

Hi Aiseduck,

Thanks for your reply.

As far as I know that it is default that json file which is equivalent to 4 MB of Unicode string data in the Web application. And I know that we could use the jsonSerialization element of the configuration file to set the maximum length in the web.config file for this ASP.NET application.

http://forums.asp.net/t/1697754.aspx?what+is+maxJsonLength+in+jsonSerialization+

So if you use the JSON file like the above web app in your Windows 8.1 universal app solution, you could check that whether it will helpful for you.

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, June 23, 2015 12:14 PM

Can you point me to the right file to edit in my solution to get this fixed?


Wednesday, June 24, 2015 2:37 AM

Hi Aiseduck,

Thanks for your reply.

I tried to create a simple Windows 8.1 universal app and then add a JSON file in the Windows 8.1 universal app.

Then I add source data stored in JSon file, but I found that when the JSON file exceeds the 5MB, I get same result exceeds the 5MB limit for the JSON editor like the james provided screen shot.

I also try to do some research about this JSON editor in the VS IDE, but I did not found any useful message about how to modify the json file size limitation for 5 MB.

So if possible, I suggest you could submit a feedback to Microsoft Connect feedback portal: http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx, Microsoft engineers will evaluate them seriously.  Thanks for your understanding.

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.