moments json functionality