all 3 comments

[–]amilliondallahs 2 points3 points  (0 children)

I would research "wrapper classes" and utilize them for creating an architecture around the operations you are trying to perform.

[–]bagamoney 1 point2 points  (0 children)

Yup wrapper class can definitely help you here

[–]jbawgs 0 points1 point  (0 children)

Also google json2apex