812
Views
5
Comments
Solved
JSONSerialize/JSONDeserialize 
Question

Trying to understand how to Serialize and Deserialize JSON in a mobile app I constructed a simple method as illustrated in the attached document.

1. Get a list of LocalEntity (works)

2. Serialize the List (works- JSON is as per comment)

3. Deserialize the output from the Serailize ( gets two rows in the list but no values in the fields?)

 Shouldn't this work?

What am I doing incorrectly?



SerializeDeserialize.png
2018-05-16 11-16-36
João Heleno
 
MVP
Solution

Keith, I think I know what's the problem.

In 1) you are passing a "Record List" to the Serialize widget.



And then you are saying in Deserialize that the data type is a "List".

Try changing to "Record List" of LocalMeasureName.

You say that the Data Type is a List of Record of Measure...

It should do the trick!

2014-12-24 13-44-21
Keith Matthews

João Heleno wrote:

Keith, I think I know what's the problem.

In 1) you are passing a "Record List" to the Serialize widget.



And then you are saying in Deserialize that the data type is a "List".

Try changing to "Record List" of LocalMeasureName.

You say that the Data Type is a List of Record of Measure...

It should do the trick!

João

That worked. Thanks for clearing that up that was a little tricky!

Regards

Keith 


2018-05-16 11-16-36
João Heleno
 
MVP

Hi Keith,

Can't see your document... can you check your post please?


Thanks

2014-12-24 13-44-21
Keith Matthews

João Heleno wrote:

Hi Keith,

Can't see your document... can you check your post please?


Thanks

Sorry now attached.


2018-05-16 11-16-36
João Heleno
 
MVP

Oh boy, tried to do a spike with your case and I'm also suffering from the same problem :D

Now I'll have trouble sleeping if I don't find why...

2018-05-16 11-16-36
João Heleno
 
MVP
Solution

Keith, I think I know what's the problem.

In 1) you are passing a "Record List" to the Serialize widget.



And then you are saying in Deserialize that the data type is a "List".

Try changing to "Record List" of LocalMeasureName.

You say that the Data Type is a List of Record of Measure...

It should do the trick!

2014-12-24 13-44-21
Keith Matthews

João Heleno wrote:

Keith, I think I know what's the problem.

In 1) you are passing a "Record List" to the Serialize widget.



And then you are saying in Deserialize that the data type is a "List".

Try changing to "Record List" of LocalMeasureName.

You say that the Data Type is a List of Record of Measure...

It should do the trick!

João

That worked. Thanks for clearing that up that was a little tricky!

Regards

Keith 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.