Database

[{"_id":3623,"identifier":"sec_123","elements":{"title":"elem_abc","sub_title":"elem_def","media":"elem_ghi","button":"elem_jkl"}}]

Query

db.collection.aggregate([{$replaceRoot:{newRoot:{$arrayToObject:[[{k:"$identifier",v:"$elements"}]]}}}])

Result