Method that can be overridden to customise json