Provides toJSON() function which represents JSON serialisation conventions of squid framework.
toJSON()