FR - Add 'Copy As JSON' to State Window

When viewing the State Window of anything there are times where I wish I was able to copy the values easily, like just a simple button to 'Copy As JSON" would be really helpful. For example if I'm using a calendar component:

and I'm having an issue with one of these events, I'll often want to grab just 1 or 2 items in the datasource, switch the mode to "Mapped" then manually enter the items I grabbed earlier. This is so I can remove as many outside variants as possible, in this case it's the extra data that isn't an issue. If I copy/paste the data field I get:


and it pastes as:

allDay 
false
color 
"rgb(253, 230, 138)"
end 
"2025-09-09T08:00:27.855-0400"
eventId 
"Event1"
groupId 
"123"
start 
"2025-09-09T07:00:27.855-0400"
title 
"Standup"

And now I have to format into a JSON obj, add quotations and add a root 'data' element.

It'd also be really handy when wanting Claude or GPT to analyze the state or structure of something

2 Likes

Yes please! So I can finally get rid of my JSon editor component when building apps. (which reminds me I need to create a feature request for the json viewer component to have a copy to clipboard button functionality!)

2 Likes

I've experienced the same, a copy as JSON would have been a real time saver.
I'll raise it as an item for consideration.

4 Likes