Added method and protocol to JSON output.