I've updated the above a bit, I might not have explained it properly. Ignore the malformed brackets, this is just a sample code. The issue is when I place in the numerals of 1, 2, 3, etc, any underlying subject comes up as "Not an array reference". If I actually put in subject3, within its own array, that does not error out, but it also does not show me the values of what's within the array (subject 4, 5, etc).
So the issue is I need to identify each subjects value, is my array incorrect or am I setting up the parameters incorrectly? Also, the JSON output cannot be changed