Skip to content

Issue parsing text to json #266

@giacgiac

Description

@giacgiac

Hello, im trying to parse a responsetext from an http error 422, this is the string value response req.responsetext:

{"error":{"message":"Il totale dei pagamenti non corrisponde al totale da pagare.","validation_result":null}}

dim parsed ad dictionary

set parsed = jsonconverter.jsonparse(req.responsetext) and my json and debug:

Dim key As Variant
For Each key In Parsed.Keys
Debug.Print key, Parsed(key)
Next key

result error runtime 450 "Wrong number of arguments" because parsed have only "error" key but "nothing" as value and not second level.. please help me and sorry for my english...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions