I‘m surpised at the presented dichotomy between JSON formatting and what the Apple SDK provides to parse output into structs.
Based on what I understand about how the former works, I would assume that the latter has the same properties and failure modes.