Building the two JSON files