From 809a26505b5ceaf488151ba859f1a986d757b582 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 6 Aug 2022 07:45:19 +0300 Subject: Remove unnecessary parsing JSON already has a way to denote an array of objects, so there is no need to manually parse such arrays from strings. --- tests/data/sample_json_file.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/data') diff --git a/tests/data/sample_json_file.json b/tests/data/sample_json_file.json index 355124a..85f9b9d 100644 --- a/tests/data/sample_json_file.json +++ b/tests/data/sample_json_file.json @@ -1,6 +1,8 @@ { "file_path":"/home/kabui/correlation_rust/tests/data/db300.txt", - "x_vals":"25.08439, 72.02225, 47.56293, 22.87893, 14.28721, 71.84655, 87.81991, 84.86824, 6.72478, 5.72373, 73.47078, 63.74703", + "x_vals": [ + 25.08439, 72.02225, 47.56293, 22.87893, 14.28721, 71.84655, 87.81991, 84.86824, + 6.72478, 5.72373, 73.47078, 63.74703], "sample_values":"bxd1", "method":"pearson", "file_delimiter":",", -- cgit 1.4.1