Process input line with json format