add check.Metadata type
add json conversion stuff
metadata type belongs to json package