Write to json and spam