Working json dumper