Created
September 30, 2014 13:18
-
-
Save stuartbates/2ff4accc2e213320f702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
data = { | |
status: 200, # Maps to HTTP response codes (200 = OK, 404 = not found) | |
search: { | |
label: 'Apple', | |
image: '', | |
}, | |
data: { | |
demographics: { | |
age: { | |
label: '25 to 35', | |
image: '', | |
zscore: 0, # Between 1 and -1 | |
extra: [], | |
}, | |
gender: { | |
label: 'Male', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
social_grad: { | |
label: 'Middle Class', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
region: { | |
label: 'London', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
income: { | |
label: 'Under £5,000', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
party: { | |
label: 'Labour', | |
image: 'https:#images.yougov.com', | |
zscore: 0, | |
extra: [], | |
} | |
}, | |
lifestyle: { | |
interests: [ | |
{ | |
label: 'Walking', | |
image: 'https:#images.yougov.com', | |
zscore: 0, | |
extra: [], | |
node_id: 1 | |
}, | |
{ | |
label: 'Singing', | |
image: 'https:#images.yougov.com', | |
zscore: 0, | |
extra: [], | |
node_id: 1, | |
}, | |
], | |
hobbies: [ | |
# Nodes | |
], | |
sports: [ | |
# Nodes | |
], | |
dishes: [ | |
{ | |
label: 'Turkey Twizzlers', | |
image: '', | |
zscore: 0, | |
extra: [ | |
{ | |
label: '', | |
image: '', | |
zscore: 0, # Between 1 and -1 | |
} | |
] | |
} | |
], | |
animals: [ | |
# Nodes | |
], | |
}, | |
personality: { | |
positive_traits: [ | |
# Nodes | |
], | |
negative_traits: [ | |
# Nodes | |
], | |
cat_dog: { | |
label: 'Cat', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
attitudes: [], | |
}, | |
brands: { | |
clothing: [ | |
# Nodes | |
], | |
bank: [ | |
{ | |
label: 'Natwest', | |
image: '', | |
zscore: 0, | |
extra: [] | |
} | |
], | |
car: [ | |
{ | |
label: 'Volvo', | |
image: '', | |
zscore: 0, | |
extra: [] | |
} | |
], | |
supermarket: [ | |
{ | |
label: 'Tesco', | |
image: '', | |
zscore: 0, | |
extra: [], | |
} | |
], | |
brands: [ | |
{ | |
label: 'Pebble', | |
image: '', | |
zscore: 0, | |
extra: [], | |
} | |
] | |
}, | |
entertainment: { | |
movies: [ | |
# Nodes | |
], | |
music: [ | |
# Nodes | |
], | |
television: [ | |
# Nodes | |
], | |
celebrities: [ | |
# Nodes | |
] | |
}, | |
media: { | |
newspaper: [ | |
# Nodes | |
], | |
magazines: [ | |
# Nodes | |
], | |
hours_online: { | |
label: 'Less than 5', | |
image: '', | |
zscore: 0, | |
extra: [] | |
}, | |
}, | |
online: { | |
facebook: [ | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
} | |
], | |
twitter: [ | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
} | |
], | |
websites: [ | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
}, | |
{ | |
label: '', | |
image: '', | |
zscore: 0, | |
extra: [], | |
} | |
], | |
apps: [ | |
# Nodes | |
] | |
} | |
} | |
} | |
puts data.to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment