Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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

asked 30 Jul '19, 05:30

Veselin%20Ivanov's gravatar image

Veselin Ivanov
44679
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×30
×22
×4

question asked: 30 Jul '19, 05:30

question was seen: 1,190 times

last updated: 30 Jul '19, 05:30