now returns a json object wehn you request details