Encode js to nicely formatted human readable string. (utf-8 encoding)

    Usage::

        >>> from weatherlab.lib.dataIO.js import js2str
        >>> s = js2str({"a": 1, "b": 2})
        >>> print(s)
        {
            "a": 1,
            "b": 2
        }

    **中文文档**

    将可Json化的Python对象转化成格式化的字符串。

def js2str(js, sort_keys=True, indent=4):
    """Encode js to nicely formatted human readable string. (utf-8 encoding)

    Usage::

        >>> from weatherlab.lib.dataIO.js import js2str
        >>> s = js2str({"a": 1, "b": 2})
        >>> print(s)
        {
            "a": 1,
            "b": 2
        }

    **中文文档**

    将可Json化的Python对象转化成格式化的字符串。
    """
    return json.dumps(js, sort_keys=sort_keys,
                      indent=indent, separators=(",", ": "))