Moved json initializing to startup function