Building JSON via multiple invoke code activities

I am adding many datapoints to a JSON. I would like to split these up, just to keep it neat, as there are 350 datapoints to add. These are under headers such as “personal information” “address” etc, so I was going to use 1 invoke code activity per header. Could someone please talk me through how I would do this?