json_contains

json_contains(json_str, x)[source]

Return True if a JSON string contains x.

Parameters
  • json_str (str) – JSON string.

  • x (object) – Value to search for.

Returns

True if x is in json_str.

Return type

bool