Hi All,

This is strange but outsystems is not allowing me to add structure from JSON. Also when I created the structure manually, it's now working when using the JSONDeserialize . It's coming empty.

Sample below

{"dataKey":"DYzm62ZWk6RUQ1eigPcTz4oNTlCwJWN63u32LnAx+eE=","record":"CLrkc2EhKmUHGZg4cThFrY4SyM87nKAyc46fvMPiVhrcB5gYxflQUPJRlZwycjFrNdcsfkXXVeDrIayjzqKOFVZhLrfBHbIzcboZ6FJwaWmW0oWceMnRWpJB795Pxe/o/LezwOZFuUb6xZ9vg3xXvD/LH96AI7Y+u42C+WuaGFCC+OxcGZi6FATeR31nW5hv+0u60711Ooiq5lIAjpArdJgl5H4yOLxer2UeAD451Wj0UE0Li7RVMCrFCb+mkYx9ZBXTOAENOKtEKXWwQwTwAiKbG0iMl2JYB80VbATJsdRjOc6fUOMrWnuDhwnmbe1XG1U1GaXEXJz+dPHjGMbuo2VWwmgi5gSUP04+e6Psf/VDvAjmrhYoCnAhOomZ5nfXKOa1f+mTMp/Gk/bM3oKE6PlxLzYZRTZzJkXhiN3XWTub5qM5K/wsE8KO2CBsnXIfHj0FevZgVMTkpz8fit42/o3ZPNlhN2N1EuiyOwv0sDmcW4PGbwPRggMSk8b4gvelleera3+L/pMSCw+wyST1FrD7ZnIN0C6JBmjsLrFmgJt+2wx6AnaU1QYJp6k9s8hjlDVpXWim24/eGApE9MAp4VeJUPP/UEKJFhFqzROcv0NYMz6DyHYx8ugsaes2psFjOOVhDImUR6bOzc1w0CSxnWlHrQhTA5omzP1eld1dCdRKcUwjdY/wb+ZteEPrnjddgI+jxUVuDLT05YGDkhGYRcd/ZARpAqCdgu2VzaiYwY7N6+YPQehDJ7BbXcUTB/2QIKaE5yZjmFReSRpMktcW2AzghF1kw4vt1YHhw0rthonseu+N+0PjC785Naexyxt1Q23LJHgGiuYFkXcm/ihVkmEKnI6s/eBPXQs1lv4WwQq0wKj8niAqs6qzVJFDcMfMYIu6aTPAIAe3YmYpgsUpllWojIa6SdReGFwwkTpQ6WYtlWQTCpQPWp1mlt5BPAyy","iv":"Tz9q0PG630ueaH5Txf1mWQ=="}

{"dataKey":"1111aaa","record":"1111aaa","iv":"1111aaa"}

Can anyone check and let me know is it just me or others too are having this issue.


Thanks 

Pranav

Hi Pranav,

Check if this properties stay mandatory = true and  have default value.

Sometimes this values affect your json.

Regards.

Hi Agno Silveira,

Thanks for the reply. I have checked that as well, still no change. 

Also, were you able to add a structure using the provided JSON??


I understand Pranav,
I couldn't convert:

hi Pranav,


I was able to add structure from JSON though, i tried on OutSystems version 10. Not sure why its not working for you.

Shilpa Uppund wrote:

hi Pranav,


I was able to add structure from JSON though, i tried on OutSystems version 10. Not sure why its not working for you.

Hi Shilpa,

Ok, Can you try adding the structure and use JSONDeserialize to see if it's happening properly and you are getting the decoded variable.


{"dataKey":"DYzm62ZWk6RUQ1eigPcTz4oNTlCwJWN63u32LnAx+eE=","record":"CLrkc2EhKmUHGZg4cThFrY4SyM87nKAyc46fvMPiVhrcB5gYxflQUPJRlZwycjFrNdcsfkXXVeDrIayjzqKOFVZhLrfBHbIzcboZ6FJwaWmW0oWceMnRWpJB795Pxe/o/LezwOZFuUb6xZ9vg3xXvD/LH96AI7Y+u42C+WuaGFCC+OxcGZi6FATeR31nW5hv+0u60711Ooiq5lIAjpArdJgl5H4yOLxer2UeAD451Wj0UE0Li7RVMCrFCb+mkYx9ZBXTOAENOKtEKXWwQwTwAiKbG0iMl2JYB80VbATJsdRjOc6fUOMrWnuDhwnmbe1XG1U1GaXEXJz+dPHjGMbuo2VWwmgi5gSUP04+e6Psf/VDvAjmrhYoCnAhOomZ5nfXKOa1f+mTMp/Gk/bM3oKE6PlxLzYZRTZzJkXhiN3XWTub5qM5K/wsE8KO2CBsnXIfHj0FevZgVMTkpz8fit42/o3ZPNlhN2N1EuiyOwv0sDmcW4PGbwPRggMSk8b4gvelleera3+L/pMSCw+wyST1FrD7ZnIN0C6JBmjsLrFmgJt+2wx6AnaU1QYJp6k9s8hjlDVpXWim24/eGApE9MAp4VeJUPP/UEKJFhFqzROcv0NYMz6DyHYx8ugsaes2psFjOOVhDImUR6bOzc1w0CSxnWlHrQhTA5omzP1eld1dCdRKcUwjdY/wb+ZteEPrnjddgI+jxUVuDLT05YGDkhGYRcd/ZARpAqCdgu2VzaiYwY7N6+YPQehDJ7BbXcUTB/2QIKaE5yZjmFReSRpMktcW2AzghF1kw4vt1YHhw0rthonseu+N+0PjC785Naexyxt1Q23LJHgGiuYFkXcm/ihVkmEKnI6s/eBPXQs1lv4WwQq0wKj8niAqs6qzVJFDcMfMYIu6aTPAIAe3YmYpgsUpllWojIa6SdReGFwwkTpQ6WYtlWQTCpQPWp1mlt5BPAyy","iv":"Tz9q0PG630ueaH5Txf1mWQ=="}


pranav pandey wrote:

Shilpa Uppund wrote:

hi Pranav,


I was able to add structure from JSON though, i tried on OutSystems version 10. Not sure why its not working for you.

Hi Shilpa,

Ok, Can you try adding the structure and use JSONDeserialize to see if it's happening properly and you are getting the decoded variable.


{"dataKey":"DYzm62ZWk6RUQ1eigPcTz4oNTlCwJWN63u32LnAx+eE=","record":"CLrkc2EhKmUHGZg4cThFrY4SyM87nKAyc46fvMPiVhrcB5gYxflQUPJRlZwycjFrNdcsfkXXVeDrIayjzqKOFVZhLrfBHbIzcboZ6FJwaWmW0oWceMnRWpJB795Pxe/o/LezwOZFuUb6xZ9vg3xXvD/LH96AI7Y+u42C+WuaGFCC+OxcGZi6FATeR31nW5hv+0u60711Ooiq5lIAjpArdJgl5H4yOLxer2UeAD451Wj0UE0Li7RVMCrFCb+mkYx9ZBXTOAENOKtEKXWwQwTwAiKbG0iMl2JYB80VbATJsdRjOc6fUOMrWnuDhwnmbe1XG1U1GaXEXJz+dPHjGMbuo2VWwmgi5gSUP04+e6Psf/VDvAjmrhYoCnAhOomZ5nfXKOa1f+mTMp/Gk/bM3oKE6PlxLzYZRTZzJkXhiN3XWTub5qM5K/wsE8KO2CBsnXIfHj0FevZgVMTkpz8fit42/o3ZPNlhN2N1EuiyOwv0sDmcW4PGbwPRggMSk8b4gvelleera3+L/pMSCw+wyST1FrD7ZnIN0C6JBmjsLrFmgJt+2wx6AnaU1QYJp6k9s8hjlDVpXWim24/eGApE9MAp4VeJUPP/UEKJFhFqzROcv0NYMz6DyHYx8ugsaes2psFjOOVhDImUR6bOzc1w0CSxnWlHrQhTA5omzP1eld1dCdRKcUwjdY/wb+ZteEPrnjddgI+jxUVuDLT05YGDkhGYRcd/ZARpAqCdgu2VzaiYwY7N6+YPQehDJ7BbXcUTB/2QIKaE5yZjmFReSRpMktcW2AzghF1kw4vt1YHhw0rthonseu+N+0PjC785Naexyxt1Q23LJHgGiuYFkXcm/ihVkmEKnI6s/eBPXQs1lv4WwQq0wKj8niAqs6qzVJFDcMfMYIu6aTPAIAe3YmYpgsUpllWojIa6SdReGFwwkTpQ6WYtlWQTCpQPWp1mlt5BPAyy","iv":"Tz9q0PG630ueaH5Txf1mWQ=="}



Seems to be working fine.


I attached a sample OML. It is a reactive web module.

Hi Pedro Neto,

Sorry, I should have informed you. This is a traditional web application. Outsystems11 version 11.7.10 (Build 21059).

The same issue is been faced by my teammates as well.


Made it work in a traditional web application. Attachhed is the OML. 

Can you please provide an example of it not working ? 


Edit: I guess most probably it is the format of the string you are passing to the deserializer action. 

Hi Pedro Neto,

Yes, it seems the same to me as well before but it not working with simple data . See the next JSON in my post. 

Hi Pedro Neto,

I used your test.oml and I was not able to add it there as well. Is it something to do with the Service Studio version !!

See the below screenshot.

pranav pandey wrote:

Hi Pedro Neto,

I used your test.oml and I was not able to add it there as well. Is it something to do with the Service Studio version !!

See the below screenshot.


Oh then it must be a bug specific to that SS version.

I imagine that if you create the structure manually and use deserialize on it you still don't get the expected result. 

My ss version is 11.6.30.

Hi All,

Thank you all for your help. It seems this issue was with the platform. yesterday we got the platform updated and now it's working fine.