Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
chriklev
Regular 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 from the notebook output in a pipeline?
It seems, this is possible with databricks notebooks:
https://stackoverflow.com/questions/77126213/sending-databricks-notebook-output-as-json-via-post-in-...
,but in Fabric the json output is formatted as a string.

Thanks in advance for any help 😁

1 ACCEPTED SOLUTION
jwinchell40
Super User
Super User

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.

View solution in original post

4 REPLIES 4
jwinchell40
Super User
Super User

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.

Thank you! parsing the output with the JSON function did the trick.

No problem.  Glad it worked!

v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @chriklev 

 

Welcome to Fabric Community and thanks for posting your question here.

 

I am not clear with your ask, So could you please provide me more details regarding the ask.

Which activity you are using? Can you please provide me some screenshots so that I can help you better.

 

Thank you.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.