Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitset
  %bitshift
  %bittest
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %colorsyntax
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dbitems
  %dbkey
  %dbkeys
  %dblist
  %dbmax
  %dbmin
  %dbvalues
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %exp
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %hexcolor
  %hexnum
  %hexstr
  %htmldecode
  %htmlencode
  %iconstate
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %isvalue
  %item
  %json
  %lastdir
  %left
  %leftback
  %len
  %line
  %list
  %literal
  %look
  %lower
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %match
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %packages
  %param
  %params
  %parsemode
  %parsenumbers
  %pat
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %pref
  %priority
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %ref
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %rgb
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomint
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomportal
  %roomvnum
  %roomzone
  %round
  %section
  %setglobal
  %sort
  %sql
  %sqldb
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %switch
  %threadid
  %threadname
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %url
  %vartype
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
%json [[cmud_%json]] 
Added in v3.18
json

Syntax: %json(var)
Syntax: %json(string)

When a variable name is given, this function returns the JSON string format of the string list or database variable/table. If a string argument is given, this function will construct the corresponding string list or database table from the JSON data string.

Example

#ADDKEY dbvar Name Zugg
#ADDKEY dbvar Level 20
#SHOW %json(@dbvar)

Displays: {"Level":20,"Name":"Zugg"}

db = %json("{""Level"":20,""Name"":""Zugg""}")
#SHOW @db.Name

Displays: "Zugg". Note that when specifying a json string directly, the " quotes within the string need to be doubled so that they are properly passed to the %json function. If the string data came from some other source, such as from a web service, no doubling of quotes is needed.

 User comments 
KimberlyDeborah: Wed Nov 06, 2013 4:52 am    

JSON is helpful for getting response from webservices and through http get and http response we can get the values.
hogarius: Wed Nov 06, 2013 8:52 am    

KimberlyDeborah seems to be preparing for a spam onslaught.
KimberlyDeborah: Sat Nov 09, 2013 4:54 am    

Hogarius i am just trying to share information with all forum memebers and also wondering that i would also get some valuable information from here.
Progonoi: Sun Nov 10, 2013 1:55 am    

Wow, a bot that speaks back (similarly incomprehensibly, but still). Progress.
KimberlyDeborah: Mon Nov 11, 2013 5:21 am    

Progress is important in life.How would you be so sure about that i am spammer???????

Everyone is here for discussions and for knowledge sharing and i am also for this.
charneus: Mon Nov 11, 2013 6:29 am    

Note: Progonoi said bot, not spammer...

What exactly are you looking for anyway?
KimberlyDeborah: Tue Nov 12, 2013 12:08 pm    

Thanks Charneus!!!!!

Actually i am an software developer so i am here for help and also for knowledge sharing and i am only upto that.
Progonoi: Wed Nov 13, 2013 12:19 am    

Right.
KimberlyDeborah: Thu Nov 14, 2013 7:47 am    

Progonoi do you have some knowledge about the JSON and why we use web services,whats its need to use webservices can you explain it for me.
KimberlyDeborah: Fri Nov 15, 2013 9:15 am    

Do any one has answer for this solution please?????
Viewer Comments [10 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net