SlippinJimmy Posted September 6 Report Share Posted September 6 (edited) 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 September 6 by SlippinJimmy 1 Quote Link to comment Share on other sites More sharing options...
Jim Kring Posted September 6 Report Share Posted September 6 Thanks for reporting this @SlippinJimmy We've reproduced the error and created an issue in the GitHub bug tracker here: https://github.com/JKISoftware/JKI-JSON-Serialization/issues/51 Please post any follow-up comments in GitHub -- you can also subscribe to notifications on the issue there, too. Quote Link to comment Share on other sites More sharing options...
SlippinJimmy Posted September 10 Author Report Share Posted September 10 Thanks Jim. I've just subscribed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.