Adding stack size params.
Handlling empty objects for JSON