AnsweredAssumed Answered

Data from SOE

Question asked by shaningesri on Jan 3, 2014
Latest reply on Jan 8, 2014 by shaningesri
I created a SOE application.  Through URL w/ parameters (e.g. like that:
http://localhost:6080/arcgis/rest/services/Test/RailLRSDef/MapServer/exts/SOE_LRSSegment/Segment_Operation?LRSSegInput=A1&MeasureInputA=100&MeasureInputB=500&f=pjson), I got the returned results like that (marked as Scenario A):
{ "Geometry": [  {  "paths": [  [
     [201394.01178484457, 173661.08635829584 ],
     ...
    ]  ] }  ]  }
if I load this data as
  var polylineJson = <above>;
  var polyline = new esri.geometry.Polyline(polylineJson);
The polyline.paths contains nothing.  If the data above is changed to (marked as Scenario B)
  {  "paths": [  [
     [201394.01178484457, 173661.08635829584 ],
     ...
    ]  ] }
The polyline.paths will be loaded with all of the point values.
How can change the data format from Scenario A to Scenario B programally?  Thanks.

Outcomes