use JSON to encode code line in log, help to debug