Fix metadata storage of acceptance fractions

Can't embed a dict inside the metadata so instead I encode the dict as
json.