0
Ich habe zwei JSON-Objekte.
colJson:
{"MetaData": [{"FieldName":"No.","ThousandsSeparator":true},{"FieldName":"Mvmt","DecimalPlaces":0,"ThousandsSeparator":true,"CurrencySymbol":true},{"FieldName":"% Mvmt","DecimalPlaces":1}]}
Mit einer Länge von 3.
rowJson:
{"MetaData": [{"BackgroundColour":"#A9A9A9","Bold":true}]}
Mit einer Länge von 1
Was ich brauche, ist am Ende, wo rowJson wird auf jedes Element in der Spalte angewendet.
Allerdings, wenn ich versuchen Sie dies:
var jsonObj = {};
jsonObj = $.extend(true, colJson, rowJson);
The BackGroundColour und Bold nur auf das erste Element in colJson angelegt bekommen.
Haben Sie Ideen, wie Sie BackgroundColour und Bold auf alle ColJson-Objekte anwenden können?
Danke.
Großen Dank. Als Antwort markiert. – IHS88