Skip to content

Allow vdxfuniobjects to be arrays#338

Closed
monkins1010 wants to merge 2 commits intomiketout:devfrom
monkins1010:patch-17
Closed

Allow vdxfuniobjects to be arrays#338
monkins1010 wants to merge 2 commits intomiketout:devfrom
monkins1010:patch-17

Conversation

@monkins1010
Copy link
Copy Markdown

When deserializing a stream into uniobjects if there is more than one it will put them into an array. however on encoding to a vector this does not happen. So the only way to put uniobjects in of the same time is create an uniobject like this with the same key names.

{
   "objectdata":{
      "i4GC1YGEVD21afWudGoFJVdnfjJ5XWnCQv":{
         "version":1,
         "mimetype":"text/plain",
         "objectdata":{
            "message":"IBM"
         },
         "label":"Employee"
      },
      "i4GC1YGEVD21afWudGoFJVdnfjJ5XWnCQv":{
         "version":1,
         "mimetype":"text/plain",
         "objectdata":{
            "message":"2000 - 2002"
         },
         "label":"date"
      }
   }
}

When deserializing a stream into uniobjects if there is more than one it will put them into an array.  however on encoding to a vector this does not happen.  So the only way to put uniobjects in of the same time is create an uniobject like this with the same key names.

```js
{
   "objectdata":{
      "i4GC1YGEVD21afWudGoFJVdnfjJ5XWnCQv":{
         "version":1,
         "mimetype":"text/plain",
         "objectdata":{
            "message":"IBM"
         },
         "label":"Employee"
      },
      "i4GC1YGEVD21afWudGoFJVdnfjJ5XWnCQv":{
         "version":1,
         "mimetype":"text/plain",
         "objectdata":{
            "message":"2000 - 2002"
         },
         "label":"date"
      }
   }
}
@monkins1010 monkins1010 closed this Feb 5, 2025
@monkins1010 monkins1010 deleted the patch-17 branch February 5, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant