Posts by Monogarm • 15 points
4 posts
-
0
votes3
answers660
viewsA: Search JSON values for multiple keys
@Eduardoribeiro works when I only call getJSON once, when I call for example let jsonFiltrado = getJSON('$SP', '92', meuJSON) let jsonFiltrado2 = getJSON('$MT', '91', meuJSON)…
-
1
votes3
answers660
viewsQ: Search JSON values for multiple keys
I have the following JSON: { "$SP": { "0": "92", "1": "00:01:36.340", "2": "00:05:48.929\n" }, "$MT": { "0": "91", "1": "00:00:34.187", "2": "00:18:44.001\n" } } I need a function that looks for the…
-
0
votes3
answers374
viewsQ: Transform string into json
I’m having a hard time converting string {data} in Json, I get her separated by comma several times, I’d like to turn her into Json to collect the first key var data = [ "$SP", "92", "00:01:36.340",…
-
0
votes0
answers175
viewsQ: Convert string separated by comma to json
I have the function: $data ={ $G,3,"027",8,"sao paulo" $H,3,"027",5,"curitiba" $SP,3,"027",5,"brasilia",62312 } var dados = data.split(","); var json = []; var toSplit = dados.split(","); for (var i…
javascriptasked Monogarm 15