removing tailing whitespace
fixed JSON representation