• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Brogan89 · Jun 01, 2017 at 11:41 PM · visual studiojsonfile

Can't open json from editor

I used to be able to double click on a json file and it would open within the VS solution/project. But I changed it so it would open in Sublime text. Now I want to able able to open it in my project again but it wont. I am getting this error alt text

I can see it in my solution however, alt text

If I change the properties in the explorer (open with... VS) it will open in a totally new window, rather than within my project/solution .

How can I make json files open within the project again? Thanks in advance.

solution.png (4.9 kB)
console.png (3.0 kB)
Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brogan89 · Jun 07, 2017 at 10:57 PM 0
Share

Just to try make a bump cause I really would like to know how this all works. This is the desired and undesired results i am getting

(Undesired) alt text (Desired) alt text

The meta files between them are different however I changed them to be the same with no result and i deleted them so they could regenerate to also so success.

How does this all work?

undesired-json.png (3.3 kB)
desired-json.png (8.4 kB)
avatar image MaxPlite · Feb 01, 2018 at 04:39 PM 0
Share

I have the same problem however it was opening json file in new vs window from the beggining (and not attaching it to unity project it was opened in). After making new json file Unity simply does not detect it as one even though i didn't clicked anything, just tried to open it.

avatar image Brogan89 MaxPlite · Feb 04, 2018 at 11:20 PM 0
Share

ah yea, its pretty annoying, I didn't end up resolving the issue either. But I'm using VSCode now and I don't have that problem so its all good now :)

avatar image MaxPlite MaxPlite · Feb 06, 2018 at 10:02 PM 0
Share

Well, i found out that all i had to do was to manually open json file trough visual studio directly from file location. Somehow it added this file and now its attached to my unity project.

Yet it still does not show up in Unity as json file and i have to open it trough VS.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by GXMark · Nov 06, 2021 at 05:52 PM

I'm not sure if this is the same issue your facing but all i did was simply go into the windows explorer. Right click properties and change the application opening json type to visual studio. Then when i tried opening the file from the unity project explorer it opened in visual studio.

Also what i did notice in the Unity 2020.3.22f1 (LTS) edition (not tried on other versions) was that if the json file did not open in the visual studio editor but opened using notepad for example that i would lose the Unity Project explorer tool in visual studio. Which meant that i had to regenerate project files under Unity preferences>external tools.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Pangamini · Nov 06, 2021 at 11:29 PM 1
Share

I think this is the right answer. Just change the windows default program for opening files

avatar image Brogan89 Pangamini · Nov 07, 2021 at 03:46 AM 0
Share

Probably right. This is so old I've never had this problem since haha

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

108 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I save data to a text/json file and read it back and then assign the values back to the variables ? 2 Answers

Saving GameObject to file 2 Answers

Help, Reading a Json file (getting error KeyNotFounfExeption) 1 Answer

Manipulating and using .Json files at runtime. 0 Answers

JSON missing arrays 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges