How to generate unique identifiers for frames in JSON?

I’m making a script to export a whole bunch of files to spritesheets at once using the --split-grid option to be able to reference the individual sprites from the JSON, however the problem I’m having is that all the properties have the same name because there doesn’t seem to be any formatting option to include the grid cell in the property name. Duplicate property names make the JSON unusable!