Correctly work json file