Titanium JIRA Archive
Alloy (ALOY)

[ALOY-121] TSS parsing does not handle arrays of object properly

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionFixed
Resolution Date2012-07-24T11:31:38.000+0000
Affected Version/sn/a
Fix Version/s2012 Sprint 15, Release 3.0.0
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-07-23T13:50:05.000+0000
Updated2018-03-07T22:25:33.000+0000

Description

Example:
"backgroundGradient": {
    "type": "linear",
    "startPoint": { "x": "0%", "y":"0%"},
    "endPoint":   { "x": "0%", "y":"100%"},
    "colors": [
        { "color": "#000", "offset": 0.0 },
        { "color": "#666", "offset": 1.0 }
    ]
}
generates this incorrect output:
backgroundGradient: {
    type:"linear",
    startPoint: {x:"0%",y:"0%",},
    endPoint: {x:"0%",y:"100%",},
    colors: [
        0: {color:"#000",offset:0,},
        1: {color:"#666",offset:1,},
    ],
}

Comments

No comments

JSON Source