Swig filter to display a key value representation of an JavaScript object