Title: subloop-array field not always present
Last modified: August 30, 2016

---

# subloop-array field not always present

 *  Resolved [justpayas](https://wordpress.org/support/users/justpayas/)
 * (@justpayas)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/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: “[http://img.mlstatic.com/org-img/MP3/API/logos/visa.gif&#8221](http://img.mlstatic.com/org-img/MP3/API/logos/visa.gif&#8221);,
   secure_thumbnail: “[https://www.mercadopago.com/org-img/MP3/API/logos/visa.gif&#8221](https://www.mercadopago.com/org-img/MP3/API/logos/visa.gif&#8221);},{
   id: “master”, name: “Mastercard”, thumbnail: “[http://img.mlstatic.com/org-img/MP3/API/logos/master.gif&#8221](http://img.mlstatic.com/org-img/MP3/API/logos/master.gif&#8221);,
   secure_thumbnail: “[https://www.mercadopago.com/org-img/MP3/API/logos/master.gif&#8221](https://www.mercadopago.com/org-img/MP3/API/logos/master.gif&#8221);}],
   legals: “Costo Financiero Total: 3,89% – PromociÃ³n vÃ¡lida desde el 01/09/2015
   hasta el 30/09/2015, ambas fechas inclusive. VÃ¡lido para consumos realizados
   hasta en 6 cuotas Ãºnicamente con tarjeta de crÃ©dito Visa y Mastercard del Banco
   Comafi (no incluye tarjeta Provencred y Dinosaurio). PromociÃ³n 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
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [justpayas](https://wordpress.org/support/users/justpayas/)
 * (@justpayas)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6581838)
 * btw, I already donate last night 😉
 *  Thread Starter [justpayas](https://wordpress.org/support/users/justpayas/)
 * (@justpayas)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6581997)
 * hello?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6581998)
 * Yes I’m active and checking 😉
    Thank you for donating
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6581999)
 * Version 1.2.7 will be available in a few minutes. this version will fix this 
   and other bugs. Here the “.” was the problem. Sorry about that.
 *  Thread Starter [justpayas](https://wordpress.org/support/users/justpayas/)
 * (@justpayas)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6582001)
 * thank you man, I really appreciate that!
    this is a great plugin.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6582042)
 * you’re welcome

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘subloop-array field not always present’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/subloop-array-field-not-always-present/#post-6582042)
 * Status: resolved