mznjs API Documentation - v0.0.31-beta.5
    Preparing search index...

    Function parseJson5

    • 解析JSON5格式的字符串为JavaScript对象

      Type Parameters

      • T = any

      Parameters

      • text: string

        JSON5格式的字符串

      Returns T

      解析后的JavaScript对象

      当输入不是字符串或JSON5格式无效时抛出错误