Extracting docs_json & render_items from components()

Is there an easy way to extract the docs_json & render_items objects from ‘script’ returned from components() [or some other way] without parsing?

Background: I’m pulling dynamic content from an application & don’t want to have to “eval()”, I’d rather just get the json passed.
I could parse & strip this out myself, but it seems cleaner (and slightly smaller) to just pass the relevant data.

Thanks,
Emre