Parse tfdk.plan programamtically

I am looking for an example to parse a tfsdk.plan programmatically. Do we have an example?