Hi guys,
I am passing an API response which is JSON text to a new extension I am working on, But that response can be different in multiple scenarios.
Do you know if I can create a dynamic structure in OS? If my structure can contain only the attributes that come from the API?
Thank you
Hi,
Did you first search if this question was already asked and responded too?
Regards,
Daniel
I think that the links provided by Daniel can give you the main answer about that kind of 'dynamic'.
But can't you define a structure that covers all your cases and not send the default values? In that case the JSON can be smaller, since only JSON fields with values will be send.
Hope this can help you.
Best regards,
Ricardo