Use pos for position in a line.
Add JSON escape code.