refcounting json simple map type better