function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sowjanya Hegde 13Sowjanya Hegde 13 

First error: For input string: "5000000000" at [line:1, column:1559451]

I am getting this error for JSON.desrialize.

res = (List<cls_data>)JSON.deserialize(JSON.serialize(data),List<cls_data>.class);

Does anyone know about this issue. How to handle this error? Please help!

Best Answer chosen by Sowjanya Hegde 13
Vishwajeet kumarVishwajeet kumar
Hello,
It could be due to JSON data Structure not being matched with "cls_data" class while doing the deserialization. Please make sure data structure is matched on both ends. it could be that a key missing in JSON data or data type value is not as expected by deserialized class properties.

Thanks