I have a custom Data Type which stores information in json format.
This is an example snippet however there is a lot more stored.
{
"fixedWidth": false,
"siteWidth": 1600,
}
The uSync config file saves this data as:
{
"fixedWidth": "False",
"siteWidth": "1600",
}
Notice the quotes around the number and boolean. When I import uSync Content my custom Data Type can no longer display the value for siteWidth since it iis expecting a number rather than a string.
My question is, why is siteWidth saved as a string in the uSync config file rather than a number?
Question around how uSync handles custom Data Types that store json.
Hi,
I have a custom Data Type which stores information in json format.
This is an example snippet however there is a lot more stored.
The uSync config file saves this data as:
Notice the quotes around the number and boolean. When I import uSync Content my custom Data Type can no longer display the value for siteWidth since it iis expecting a number rather than a string.
My question is, why is siteWidth saved as a string in the uSync config file rather than a number?
Cheers,
Marc
Hi,
yeah a fix for something else snook this in to the latest release, but its fixed for the upcoming v10.2.0 release :
https://github.com/KevinJump/uSync/issues/413#issuecomment-1227372630
there is also a nightly with the fix in - you can test with if you want to check that will work for you.
https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync/overview/10.2.0-build.20220825.1
Hi Kevin,
Thanks for the quick response and such an amazing product. Happy to wait for the 10.2.0 release.
Cheers,
Marc
is working on a reply...