Forum Discussion
chriklev
2 years agoRegular Visitor
Reference json data from notebook output
Hello! I'm trying to return json data from a notebook like this: json_data = {"key1": "value1","key2": "value2"}
dbutils.notebook.exit(json_data) How do I reference json values ...
- 2 years ago
You can convert a string to JSON using the JSON function but I don't know that you can do a lot with it at that point.
https://learn.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions#json
Depending on your use case it may be better to write the output to a file and return the path instead so you can read the data into data factory so you can do stuff.
If its just for purposes of logging, then the rest string should be fine.
chriklev
2 years agoRegular Visitor
Thank you! parsing the output with the JSON function did the trick.
jwinchell40
2 years agoResolver III
No problem. Glad it worked!