When exporting (at least to json), default attachment values (in the slots map in the json file) are picked from the current timeline cursor position instead of using the ones that have been set in the setup pose. So, basically whatever attachments are currently visible in Spine are picked as the default ones when you export to json.
I'm using Spine 1.8.14 Professional.