What is a member name in JSON -


i making program , 1 of functions need input json member name, can tell me member name , give me example please?

from json docs :

json built on 2 structures:

  1. a collection of name/value pairs. in various languages, realized object, record, struct, dictionary, hash table, keyed list, or associative array.
  2. an ordered list of values. in languages, realized array, vector, list, or sequence.

point #1 above can visualized object members :

{} --> object

{ members } members inside object

consider json example :

{       "address"    :   "123 anywhere st.",       "city"       :   "springfield",       "postalcode" :   99999 } 

this can visualized :

enter image description here

above example creates object , initializes 3 members named address, city, , postalcode respective values "123 anywhere st.", "springfield", , "99999."

hope helps !


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -