'filter string with quotes in Spark dataframe column

I have a DF with this data:

--------+------------------------------------------+
|recType |value                                     |
+--------+------------------------------------------+
|{"id": 1|{"id": 1, "user_id": 100, "price": 50}    |
...

I can filter recType with contains, but how to do with === and quotes? I seem to get some error every time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source