Open JSON string file and save

I’m new to JSON. I have a file that is one long JSON string.

I’m working in NODE. How can I open the file and save as a listing like the screen below?

This is a forum for a specific specification, not for working with JSON generally. I’m not sure where the best place is to get help with Node, sorry :frowning: