Use a json file for data storage

Is it possible to use a json file for data storage?
I want to be able to be able to edit/update the values in a nested json file.

This sample saves a game state as JSON.