The document “?” could not be saved. Invalid type in JSON write (_NSInlineData)

Got this error on a file.

I exported the font as otf and opened that otf in Glyphs, saved with a new name, so no harm done. But I thought I’d share still, since I’d like to know why this has happened.

What did you do before you got the error?