Forum Discussion

Ferna's avatar
Ferna
Frequent Visitor
2 years ago
Solved

Import values from a local json file

Hello all, I'm trying to extract some values from a local json file:    confPath = "C:\<path>", configFile = File.Contents(confPath, BinaryEncoding.Base64) as binary, configText =...
  • Greg_Deckler's avatar
    2 years ago

    Ferna Maybe this?

    let
        Source = Json.Document(File.Contents("C:\temp\testjson.json")),
        #"Converted to Table" = Table.FromRecords({Source}),
        #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"other_field", type text}, {"url", type text}})
    in
        #"Changed Type"