Commit 909d3043 authored by Karen Konou's avatar Karen Konou

[Phylo] Fix JSON parsing

parent 29d81ed7
Pipeline #6209 passed with stages
in 13 minutes and 22 seconds
...@@ -487,7 +487,7 @@ stringedMaybeToNumber s = ...@@ -487,7 +487,7 @@ stringedMaybeToNumber s =
-- | To ["user", "sentiment analysis"] :: Array String -- | To ["user", "sentiment analysis"] :: Array String
stringedArrayToArray :: String -> Array String stringedArrayToArray :: String -> Array String
stringedArrayToArray str = stringedArrayToArray str =
if String.contains (String.Pattern "\\\"") str if String.contains (String.Pattern "\"") str
then then
str # String.length str # String.length
>>> (\length -> String.splitAt (length - 1) str) >>> (\length -> String.splitAt (length - 1) str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment