My class objects are not getting converted into json, I think it returns object references, though while executing it locally, it executes perfectly.
Here is the cod