cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a json key exists?

Former Member
0 Kudos
1,469

Hello,

I get some JSON values from the server but I don't know if there will be a particular field or not.

Like: { "name":"ProbaRegatta", "country":"Congo", "status":"invited" }

Sometimes there will be an extra field like: { "name":"ProbaRegatta", "country":"Congo", "status":"invited", "club":"somevalue" }

I would like to check if the field named "club" exists.

Kind Regards, Veselin

Accepted Solutions (0)

Answers (0)