added automatic JSON parsing. fixed windows newlines.