Use optionals to cover for when we cant create a json object as we want to continue when this happens