[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166750084283.9047.12808093486442622541.git-patchwork-notify@kernel.org>
Date: Thu, 03 Nov 2022 18:40:42 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Andrea Claudi <aclaudi@...hat.com>
Cc: netdev@...r.kernel.org, stephen@...workplumber.org,
dsahern@...il.com
Subject: Re: [PATCH iproute2] json: do not escape single quotes
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@...workplumber.org>:
On Thu, 3 Nov 2022 18:39:25 +0100 you wrote:
> ECMA-404 standard does not include single quote character among the json
> escape sequences. This means single quotes does not need to be escaped.
>
> Indeed the single quote escape produces an invalid json output:
>
> $ ip link add "john's" type dummy
> $ ip link show "john's"
> 9: john's: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
> link/ether c6:8e:53:f6:a3:4b brd ff:ff:ff:ff:ff:ff
> $ ip -j link | jq .
> parse error: Invalid escape at line 1, column 765
>
> [...]
Here is the summary with links:
- [iproute2] json: do not escape single quotes
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=49c63bc775d6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists