Monday, 24 March 2014

Self Defined Ethnicity in an array of json (sde.json)

I needed this today so wondered if anyone else does...? The Self Defined Ethnicity is a set of codes so that people can record their ethnicity. That's cool, but there's no entry for Yorkshireman... ;-)

var SDE = [
    {
        "code": "A1",
        "value": "Indian"
    },
    {
        "code": "A2",
        "value": "Pakistani"
    },
    {
        "code": "A3",
        "value": "Bangladeshi"
    },
    {
        "code": "A9",
        "value": "Any other Asian background"
    },
    {
        "code": "B1",
        "value": "Caribbean"
    },
    {
        "code": "B2",
        "value": "African"
    },
    {
        "code": "B9",
        "value": "Any other black background"
    },
    {
        "code": "E1",
        "value": "Eastern European"
    },
    {
        "code": "M1",
        "value": "White and Black Caribbean"
    },
    {
        "code": "M2",
        "value": "White and Black African"
    },
    {
        "code": "M3",
        "value": "White and Asian"
    },
    {
        "code": "M9",
        "value": "Any other mixed background"
    },
    {
        "code": "O1",
        "value": "Chinese"
    },
    {
        "code": "O9",
        "value": "Any other ethnic group"
    },
    {
        "code": "W1",
        "value": "British"
    },
    {
        "code": "W2",
        "value": "Irish"
    },
    {
        "code": "W9",
        "value": "Any other white black ground"
    },
    {
        "code": "NS",
        "value": "Not stated"
    }
];

No comments:

Post a Comment