In my .json file all the details are in one line. How do I make it look good and placing it on different lines
You can format your JSON document using Shift+Alt+F
or Format Document
from the context menu.
There are also extensions available in the Marketplace (e.g. Prettier - Code formatter).