in reply to Re^2: need help in validating json
in thread need help in validating json

can i just call 'subjects' => getsubjects(); ?

No, you will need to convert the returned JSON string to a structure first

'subjects' => from_json(getsubjects()),
poj