Jump to content

Error 1527 in JSON deserialization on valid and well-formatted JSON texts


SlippinJimmy

Recommended Posts

Hello, 

I've been using the JKI JSON deserializer to convert json data into cluster. The JSON texts are received from HTTP restful responses.

For most of the HTTP responses, the deserialization works fine. However, there is one json text that the JKI JSON cannot deserialize. The error returned is:

  • Code: 1527
  • Possible reason: LabVIEW: (Hex 0x5F7) Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW.
  • Call chain:
    • Flattened String To Variant in Array of VData to VArray__ogtk.vi->
    • JKI JSON Serialization.lvlib:JSON Parser.lvclass:Parse Value.vi:460004->
    • JKI JSON Serialization.lvlib:JSON Parser.lvclass:Parse Value.vi:460005->
    • JKI JSON Serialization.lvlib:JSON Parser.lvclass:Parse Root.vi:1760001->
    • JKI JSON Serialization.lvlib:Parser.lvclass:Parse Input String.vi:1590001->
    • JKI JSON Serialization.lvlib:JSON Parser.lvclass:Parse JSON String.vi->
    • JKI JSON Serialization.lvlib:JSON Deserializer.lvclass:Unflatten From String.vi:2180002->
    • JKI JSON Serialization.lvlib:Unflatten From JSON String.vi:4940002->
    • test_JSON.vi

 

As reported in the error description, the error occurs in the Glib VI: Array of VData to VArray.vi. 

The JSON text is valid and well-formatted. Here is an example:

{
    "results": [
        {
            "content": {
                "id": "123456",
                "type": "page",
                "status": "current",
                "title": "my page",
                "childTypes": {},
                "macroRenderedOutput": {},
                "restrictions": {},
                "_expandable": {
                    "container": "",
                    "metadata": "",
                    "extensions": "",
                    "operations": "",
                    "children": "",
                    "history": "qwerty",
                    "ancestors": "",
                    "body": "",
                    "version": "",
                    "descendants": "",
                    "space": "qwerty"
                },
                "_links": {
                    "webui": "qwerty",
                    "self": "qwerty",
                    "tinyui": "asd"
                }
            },
            "title": "qwerty",
            "excerpt": "qwerty",
            "url": "qwerty",
            "resultGlobalContainer": {
                "title": "qwerty",
                "displayUrl": "qwerty"
            },
            "breadcrumbs": [],
            "entityType": "content",
            "iconCssClass": "aui-icon content-type-page",
            "lastModified": "2024-08-23T10:43:57.000Z",
            "friendlyLastModified": "Aug 23, 2024",
            "score": 0
        }
    ],
    "start": 0,
    "limit": 25,
    "size": 1,
    "totalSize": 1,
    "cqlQuery": "qwerty",
    "searchDuration": 107,
    "_links": {
        "base": "qwerty",
        "context": "/wiki",
        "self": "qwerty"
    }
}

 

Version of packages are:

  • JKI JSON 1.1.10.37
  • JKI Serialization 1.0.1.14

In attachment, a VI for testing: test_JSON_JKILib.vi

Can you help me?

Edited by SlippinJimmy
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.