skip to Main Content

Get a specific field from JSON using PowerShell

I have a variable $result containing JSON data. Write-Host $result ## would give this result: { "format": { "filename": ".\C0001.MP4", "nb_streams": 3, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", "duration": "55.680000", "size": "360720447", "bit_rate": "51827650", "probe_score": 100,…

VIEW QUESTION

R – Read NativeLand JSON and plot in ggplot

I would like to add my own features to the map of Native Land: > library(leaflet) > url = "https://native-land.ca/coordinates/indigenousTerritories.json" > NL <- sf::st_read(url) > ggplot(NL) + geom_sf() But I get the follow error: Error in `geom_sf()`: ! Problem while…

VIEW QUESTION

Extract key, value pair from nested json file

I am trying to extract the name, longitude and latitude from a json file and convert it into a new .csv file with the columns cityname | longitude | latitude from this json: https://www.submarinecablemap.com/api/v3/landing-point/landing-point-geo.json def cables(): # print(page.text) # print(page2.text)…

VIEW QUESTION

Need help converting dataframe to json format

I have a table which has some sample data as provided below import pandas as pd data = { "mode": ["single_table_list", "single_table_list", "single_table_list", "relational_table_list", "relational_table_list"], "type": ["type_a", "type_b", "type_c", "parent_table", "child_table"], "file_name": ["file_a", "file_b", "file_c", "file_d", "file_e"], "file_path": ["path_a", "path_b",…

VIEW QUESTION
Back To Top
Search