Skip to content

Function ConvertToJson work not correctly in some special cases #52

Open
@tuannv562

Description

@tuannv562

Hi,
Thank for your library, I used VBA-JSON in my project and it's good for me.
But in some special case, I don't know why VBA-JSON work not correctly: Example

Sub test()
    Dim str As String
    str = "50014380242840ee"
    Dim dic As Dictionary
    Set dic = New Dictionary
    dic.Add "key", str
    Debug.Print JsonConverter.ConvertToJson(dic)
    Set dic = Nothing
End Sub

String output is: {"key":50014380242840ee}. I expected that is {"key":"50014380242840ee"}
Only string "50014380242840ee" will make this error (50014380242840ed or 50014380242840ef return {"key":"50014380242840ed"} or {"key":"50014380242840ef"} respectively)
Is this a bug of VBA-JSON?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions