Hi Everyone,
I'm trying to parse a Json but i'm getting error when the value is null, if it is having data means it is working. Below is my sample Json.
{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Case","url":"/test service"},"Sales_Number":null,"Sales_name":null,"Sales_Email":null,"Sales_Contact":null,"City":null,"Pincode":560000}]}
Example : Pincode have value now so it is returning me the value. If in case it is null then it is throwing error like - Currentitem doesn't have a property Pincode.
Is there any way that we can make the code to work for null values also. Except Pincode all are null values. So it is throwing me error. If it have value then it works.
Please suggest me the solution.