c# - Pairing/Grouping Object data -
I have a JSN object with the data that I am trying to display on my site, but when I use the object I repeat, the labels and the value are listed separately; While I want to group them to make connections to the data on each label.
Here is my data that I received from the JSN object:
[value, 155] [value, 183] [and_time, 2014-11-02007: [ End_time, 2014-10-31 Tate 07: 00: 00 + 0000] [value, 785] [end_time, 2014-11-01007: 00: 00 + 0000] [value, 183] 00: 00 + 0000]
And I should have such a result:
2014-10-31: 155 2014-11-01: 785 2014-11-02: 183
Is there a coupling or other method that I can use to get it?
edit JSON only relevant here, the solution should be in C # / .net
If I understand you correctly, it seems that the data is not in a very good structure. My best approach would be:
for (var i = 0; i & lt; data.count (); i + = 2) {var value = data [i]; Var endime = data [i + 1]; // Make a change with this}
This is not the most beautiful thing I have seen. But you should start it.
Comments
Post a Comment