update bbcode2json function--transform to valid EAD