Kasspars Posted July 18, 2014 Report Posted July 18, 2014 Kas ir šitais, javascript vai json? [ {'dagrevis': 'hipsters'} ] Un šitas var a = [ {'dagrevis': 'hipsters'} ] Quote
jurchiks Posted July 20, 2014 Report Posted July 20, 2014 Nu īstenībā man arī līdzīgs priekšstats par tevi radies... It looks like I'm not the only one. Quote
spainis Posted July 23, 2014 Report Posted July 23, 2014 Kas ir šitais, javascript vai json? [ {'dagrevis': 'hipsters'} ] Un šitas var a = [ {'dagrevis': 'hipsters'} ] Pirmais variants nav valid JSON(http://www.json.org/) Quote
jurchiks Posted July 23, 2014 Report Posted July 23, 2014 Kas tieši tur nav valid? Single quotes ir abos piemēros. Quote
jurchiks Posted July 23, 2014 Report Posted July 23, 2014 Ok, incorrect wording fix - ja abos piemēros ir single quotes, tad kā viens variants var būt nepareizs, bet otrs - pareizs? /piesienos pie vārdiem, I know Quote
spainis Posted July 24, 2014 Report Posted July 24, 2014 tāpēc, ka pirmais "izskatās" pēc JSON un otrais ir JS Quote
jurchiks Posted July 24, 2014 Report Posted July 24, 2014 Būtu labāk uzrakstījis vienkārši "tas nav valid JSON"... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.