Family tree
https://github.com/connected/familytree/blob/master/tree.json Base for my D3 tree example, since FLARE.JSON has cyclic references I don't want to worry about just yet.
by ZeNz0r
HTML
<pre id='result'>
</pre>
JavaScript
const family = {
"member": {
"id": "34sdt348f7",
"firstname": "Natālija",
"lastname": "Kurčanova",
"sex": 2,
"image": "people/kurchik.jpg"
},
"children": [
{
"member": {
"id": "34kit348f7",
"firstname": "Andrejs",
"lastname": "Jeļisejevs",
"sex": 1,
"image": "people/elisej.jpg"
},
"children": [
{
"member": {
"id": "11kit348f1",
"firstname": "Natālija",
"lastname": "Tarasova",
"sex": 2,
"image": "people/tarasik.jpg"
}
},
{
"member": {
"id": "dgkit548f1",
"firstname": "Inna",
"lastname": "Adameņa",
"sex": 2,
"image": "people/inna.jpg"
}
}
]
},
{
"member": {
"id": "666it548f1",
"firstname": "Darja",
"lastname": "Petrušina",
"sex": 2,
"current": true,
"image": "people/dasha.jpg"
},
"partner": {
"id": "4389t548f1",
"firstname": "Pāvels",
"lastname": "Degterenko",
"sex": 1,
"image": "people/pavel.jpg",
"relatives": 2
},
"children": [
{
"member": {
"id": "sdf4fsh544",
"firstname": "Oļegs",
"lastname": "Jaroševičs",
"sex": 1,
"image": "people/oleg.jpg"
},
...