How fragments are rendered which are returned from xblock?

I’m trying to understand how fragment returned from Studio View of my xblock gets rendered when I click edit button on studio side.
I’m getting json response from Studio view with content and resources.
I want to know how this response get rendered.