Read CSV values as double not String value

11 views
Skip to first unread message

BeemiReddy RajaSekhar

unread,
Jan 18, 2018, 3:44:08 PM1/18/18
to Gatling User Group
Hi Team, 

we want to post longitude and latitude values to serve as a double type.

Data From Csv file :
longitude,latitude
0.11642906069756,51.56821839529405
0.12934455275534,51.57039658744552
0.1680904179811,51.5555230827194

Here is Request Body :

{
 
"objectId": "123121212",
  "timestamp": "2018-10-12",
  "position": {
   
"coordinates": {
       
"latitude": "${latitude}",
      "longitude": "${longitude}"
    },
    "type": "point"
  },
  "headingDegrees": 100,
  "velocityKph": 50,
  "gpsSatellites": 50
}

I am reading data from csv and feed into json but its parsing as a string value, I want to send those values as double type.

can you help on this.

Thanks,
Raj
Reply all
Reply to author
Forward
0 new messages