Create line data from JSON