Skip to content

Possible bug with json type conversion #2

@gerchicov-bp

Description

@gerchicov-bp

I need to post a string which contains a number:

<a href="javascript:window.bridge.post('action', {'id': '123'})">SOME_TEXT</a>

I send "123" as string and want to parse it as string with Swift. Instead I get 123 (number).

The problem is every json param of string type may contain digits only and so I should parse each element as both string and int manually. How to fix this issue?

P.S. the most interesting issue is '123' could be returned as String also - if you have assigned it to the tag as attribute value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions