Fixed json detection. Fixed csv splitting.