Skip to content

Error: SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse  #81

@sainiankit

Description

@sainiankit

const data = JSON.parse(unescape(unescape(e.nativeEvent.data)));

SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at Object.onMessage (index.js:72)
    at WebView._this.onMessage (index.js:1)

Seems like the unescaped result is "[object Object]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions