Expose Rest - How to seralize nested to json

Expose Rest - How to seralize nested to json

  

Hi Gang


How do I convert an object and nested list to json for a response to an exposed rest api?

Can get the response to contain the object but fail to seralize the nested list using the usual methods


Thanks



Hi George,

Iirc, you also asked this in a different post and it is resolved? The short answer is: don't do the serialization and deserialization yourself, but let the Platform do that for you.

Solution

This post took an age to show up so used my previous profile. All working fine now and the platform is doing the work for me.


Kilian Hekhuis wrote:

Hi George,

Iirc, you also asked this in a different post and it is resolved? The short answer is: don't do the serialization and deserialization yourself, but let the Platform do that for you.



Solution

Hi George.

If you're using P10 you already have those built-in features, just like Kilian said.

Look at these options inside Service Studio: