c# - Newtonsoft Jtokne tostring converting when device language is not english -


i want parse json block in monodroid application:

 bubbles    {{   "count": 4,   "lat": 42.78875,   "lng": -90.255,   "bubble_icon": "m1.png" }}   

i'm using code:

string s= bubbles ["lat"].tostring () 

when using english language in device working right. other language not working good. example times, replace '.' ',' , time not iclude numbers.

i have problem double.parse() , resolve cultureinfo seems not working jtoken

use code:

public static double jtoketodoubel(jtoken token){         try {             if(token .type == jtokentype .string ){                 return rltparsedouble ((string) token );             }             return (double )token;         } catch (exception ex) {             rltlog .handleexception (ex);             return 0.0;         }     } 

Comments