Skip to content

Instantly share code, notes, and snippets.

@lfalvarez
Created June 18, 2015 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lfalvarez/31e2a6ecd6578e93f052 to your computer and use it in GitHub Desktop.
Save lfalvarez/31e2a6ecd6578e93f052 to your computer and use it in GitHub Desktop.
Respuesta para martín
{
"election_id": "1"
,"election_name": "Pre-candidatos a presidente"
,"district": "Argentina" //should this be a mapit id?
,"level": "Nacional" //should this be an id?
,"post": "Presidente" //should this match the pop-it post-name?
, "categories":[
{
"category_id":1,
"name": "Preguntas",
"questions": [// sorry te lo cambié por topic pero creo que no debería haber tanto problema en devolvernos
{
"question_id": 1
,"question_text": "¿Estás de acuerdo con la tenencia de drogas para consumo personal?"
,"answers": [
{
"answer_id": 1
,"answer_text": "Si, me parece bien"
,"answer_value": 2
},
{
"answer_id": 2
,"answer_text": "Sí, pero sólo en el caso de marihuana"
,"answer_value": 1
},
{
"answer_id": 3
,"answer_text": "No, salvo con usos medicinales"
,"answer_value": -1
},
{
"answer_id": 4
,"answer_text": "No, para nada"
,"answer_value": -2
}
]
}
,{
"question_id": 2
,"question_text": "¿Creés que se deben instalar más cámaras de seguridad en la vía pública?"
,"answers": [
{
"answer_id": 5
,"answer_text": "Si, me parece bien"
,"answer_value": 2
},
{
"answer_id": 6
,"answer_text": "Sí, pero que sólo sean observadas por la autoridad pública"
,"answer_value": 1
},
{
"answer_id": 7
,"answer_text": "No, salvo en lugares de gran concentración de gente (como estaciones de tren, aeropuertos, parques, etc)"
,"answer_value": -1
},
{
"answer_id": 8
,"answer_text": "No, para nada"
,"answer_value": -2
}
]
}
,{
"question_id": 3
,"question_text": "¿La inseguridad se combate aumentando las penas de los delitos?"
,"answers": [
{
"answer_id": 9
,"answer_text": "Si, es así"
,"answer_value": 2
}
{
"answer_id": 10
,"answer_text": "Sí, pero también hay que mejorar las cárceles y con re-educación del delincuente"
,"answer_value": 1
}
{
"answer_id": 11
,"answer_text": "No, pero los procesos judiciales deberían ser más rápidos"
,"answer_value": -1
}
{
"answer_id": 12
,"answer_text": "No, las penas más severas no son la solución"
,"answer_value": -2
}
]
}
,{
"question_id": 4
,"question_text": "¿Creés que se debe bajar la edad de imputabilidad?"
,"answers": [
{
"answer_id": 13
,"answer_text": "Sí, hasta los 14 años"
,"answer_value": 2
}
{
"answer_id": 14
,"answer_text": "Sí, pero hasta los 16 años"
,"answer_value": 1
}
{
"answer_id": 15
,"answer_text": "No, salvo que se le aplique una pena que no sea de prisión"
,"answer_value": -1
}
{
"answer_id": 16
,"answer_text": "No, para nada"
,"answer_value": -2
}
]
}
]
}
]
,"candidates": [
{
"candidate_id": 1 //should this be a pop-it id?
,"candidate_name": "Sergio Massa"
,"candidate_party": "Frente Renovador"
,"candidate_pic": "https://scontent-gru1-1.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/s720x720/10257959_10153373176024928_6552259887146670331_n.jpg?oh=dcaf00f1ed36b467cd545e83f0452be8&oe=55FC8FC10"
,"positions": { // aquí me gustaría que fuera un objeto más completo
"1": -1
,"2": -1
,"3": -1
,"4": -1
},
//algo de este tipo
[
{
"question_id": 1,
"answer_id": 7,
"value": -1 // el equivalente a answer_value
//Pienso que la posición política de un candidato varía con respecto a la respuesta
//dime qué piensas
// yo sacaría el answer_value de arriba
},
{
"question_id": 2,
"answer_id": 2,
"value": -1
}
]
}
,{
"candidate_id": 2 //should this be a pop-it id?
,"candidate_name": "Mauricio Macri"
,"candidate_party": "Union PRO Federal"
,"candidate_pic": "https://scontent-gru1-1.xx.fbcdn.net/hphotos-frc3/v/t1.0-9/998751_10151833038678478_493442375_n.jpg?oh=60be11994a453eb3399e9e9f2c0f9b71&oe=55F9E2BA"
,"positions": {
"1": -1
,"2": -1
,"3": -1
,"4": -2
}
}
,{
"candidate_id": 3 //should this be a pop-it id?
,"candidate_name": "Daniel Scioli"
,"candidate_party": "FpV"
,"candidate_pic": "https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10152374_10152581245773787_1079208260254897631_n.png?oh=b10a2c586c149dcc27d4257ad91c9939&oe=56031DE5&__gda__=1443168499_42404d4ac549022ae6fe5cd8cfbc333a"
,"positions": {
"1": 1
,"2": -2
,"3": 1
,"4": 1
}
}
,{
"candidate_id": 4 //should this be a pop-it id?
,"candidate_name": "Margarita Stolbizer"
,"candidate_party": "GEN-FAP"
,"candidate_pic": "https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xtf1/v/t1.0-9/s720x720/10003915_10155486801740473_4013550621175646990_n.jpg?oh=5c94d506cbc4b0b47b91293e1d25104a&oe=55FAB023&__gda__=1442317275_ab41643465fb4ef554861b310a583669"
,"positions": {
"1": -1
,"2": 1
,"3": 2
,"4": 1
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment