str2json(value)

Parse a JSON string into a Python object.

This is just an alias for json.loads.

Parameters:

value (str) – The JSON string to parse.

Raises:

ValueError – If the string is not valid JSON.

Return type:

dict[str, Any]

Returns:

The parsed Python object (dict, list, str, int, float, bool, or None).