Merge pull request #18 from DanilloCorvalan/master
changing model array fields flattening format to use square braces
This commit is contained in:
commit
f890e70e6e
@ -125,7 +125,7 @@
|
|||||||
var flatObject = this._flatten(obj[i]);
|
var flatObject = this._flatten(obj[i]);
|
||||||
for (var x in flatObject) {
|
for (var x in flatObject) {
|
||||||
if (!flatObject.hasOwnProperty(x)) continue;
|
if (!flatObject.hasOwnProperty(x)) continue;
|
||||||
output[i + '.' + x] = flatObject[x];
|
output['[' + i + '].[' + x + ']'] = flatObject[x];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
output[i] = obj[i];
|
output[i] = obj[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user