Fixing issue with json response

Fixing the multiple array nesting for attribute **apps**