Fix failing JSON v1.0 unit tests in SdmxSource - SDMXRI-1812
JSON v1.0 writer improperly writes structure section of multi-dataset data messages, it only writes structures related to the last dataset written. Because of this bug 2 unit tests are also failing.
On the contrary to v2.0 JSON data messages, in v1.0 there is only one common structure object for every datasets written (in v2.0 structure is also an array similarly to datasets). Because of this, the component code mappings should not be reset at the start of each dataset, but should be preserved until all the datasets are written.
Related ticket at ESTAT: SDMXRI-1812
Edited by Zsolt Lenart