The task is to convert unbound table data consisting of a single row of embedded Checkbox views into a JSON form to ultimately save into a SQL Server database.
Please see, Wiki - how to post code on this forum. It's generally a good idea to post code rather than pictures of code. That way we can copy and test it or modify it in our replies. Post a cropped screengrab too if you think the context is useful.
You have (papering over some minor technicalities) a JSON structure - specifically, a json array/list containing JSON objects already; your property tree.
I don't see why you think you need to convert it into a PyDataset. You should be able to convert your Perspective property structure into a JSON string to insert in your query using system.util.jsonEncode.