json writing functions module for shellfire