AnsweredAssumed Answered

How to concatenate two JSon in one object

Question asked by CrimesTechno on Oct 5, 2017
Latest reply on Oct 5, 2017 by CrimesTechno

I need to concatenate two JSON in one object they are not filled in the same script.  Is it possible and how it must be done?

Here is what I tried and I've got only the first part in my JSON.

ScriptOne

 

Définir variable [$$partie1 ;JSONSetElement ("{}";

["Numero";Dossier::NumeroDossier ; JSONString];["Id_Employe";Dossier::ID_Employe;JSONNumber];["NumeroLot";$$noLot;JSONString];  ["Statut";Dossier::Statut;JSONString]

)

 

ScriptTwo

Définir variable [$$partie2; [JSONSetElement ("";["id_Detail";DetailInformation::Id_Detail;JSONNumber]; ["Adresse";DetailInformation::Adresse;JSONString];

["type";DetailInformation::Type;JSONString];["espace";DetailInformation::Espace;JSONString])]

 

Définir variable [JSONSetElement ( $$obj_facture;facture::Id_Facture; $$partie1 & $$partie2; JSONObject)]

Outcomes