Persist locking for data export

I want to export sheet data as JSON, but retain any locking of cells that the user may have added. Is there a way to do this?

The reason is that I want to reload the sheet at a later point (using the exported JSON) and retain the locking as the user has set up.