Normally,
F.get_json_object(name, "$.element_name")
works fine to extract the element_name
from a JSON object like this
{"element_name" : 1}
But what if the name has a space in this? How do I quote the name?
{"element name" : 1}
this doesn't work obviously
F.get_json_object(name, "$.elementname")
Normally, this is not a pyspark specific problem but it seems like pyspark (and maybe java) can have slightly different specs for the jsonpath.