subloop-array field not always present
-
Hello, in my json a subloop array is not always present, there is some conditional parameter I can use ?
example:
{
id: “0e7583a15eb718f6b3987f21c278e457”,
issuer: {
id: 272,
name: “Banco Comafi”
},
max_installments: 6,
marketplace: “NONE”,
start_date: “2015-09-01T03:00:00.000Z”,
expiration_date: “2015-10-01T02:59:59.999Z”,
total_financial_cost: null,
payment_methods: [
{
id: “visa”,
name: “Visa”,
thumbnail: “https://img.mlstatic.com/org-img/MP3/API/logos/visa.gif”,
secure_thumbnail: “https://www.mercadopago.com/org-img/MP3/API/logos/visa.gif”
},
{
id: “master”,
name: “Mastercard”,
thumbnail: “https://img.mlstatic.com/org-img/MP3/API/logos/master.gif”,
secure_thumbnail: “https://www.mercadopago.com/org-img/MP3/API/logos/master.gif”
}
],
legals: “Costo Financiero Total: 3,89% – Promoci?3n v??lida desde el 01/09/2015 hasta el 30/09/2015, ambas fechas inclusive. V??lido para consumos realizados hasta en 6 cuotas ?onicamente con tarjeta de cr??dito Visa y Mastercard del Banco Comafi (no incluye tarjeta Provencred y Dinosaurio). Promoci?3n no v??lida para tarjetas corporativas. *TNA: 0% Tasa Nominal Anual: TEA: 0% Tasa Efectiva Anual.”
}“payment_methods” is not always present and the output shows:
{subloop-array:payment_methods:10}{payment_methods.name}.{/subloop-array:payment_methods}regards
- The topic ‘subloop-array field not always present’ is closed to new replies.