Generate encoded codes options from a json definition. Usually the json is found in the snabble metadata.