skip to Main Content

Extract Value from a String? (JSON expression)

I want to extract the value (.68) from this string. How would I go about doing this? {"values":[{"source":"source_value","value":".68"}, {"source":"source.units","value":"%"}, {"source":"source_name","value":"Chemical"}]} Currently, I have tried: sub(".*:", "", df$value_as_string) But I only get: ""Chemical"}]}"

VIEW QUESTION
Back To Top
Search