JSON:API Document Based Storage

Hi Folks ,

Wanted to understand how do you deal with document based databases that have multi-value embedded documents . Here is an example


“tags” : [ {“refkey”,“2344”,“value”:“private”},{“refkey”:“0339”,“value”:“public”}]


I can represent embedded documents as relationships and requires some kind parent id but wondering if there is a better way . If the standard allows for a way to add and remove values for attribute list then this would be more preferred .

Thanks in advance