Kasspars Posted July 18, 2014 Report Share Posted July 18, 2014 Kas ir šitais, javascript vai json? [ {'dagrevis': 'hipsters'} ] Un šitas var a = [ {'dagrevis': 'hipsters'} ] Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 20, 2014 Report Share Posted July 20, 2014 Hipsters?:D Quote Link to comment Share on other sites More sharing options...
jurchiks Posted July 20, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
daGrevis Posted July 20, 2014 Report Share Posted July 20, 2014 Nu varbūt arī! :D Quote Link to comment Share on other sites More sharing options...
spainis Posted July 23, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
jurchiks Posted July 23, 2014 Report Share Posted July 23, 2014 Kas tieši tur nav valid? Single quotes ir abos piemēros. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 23, 2014 Report Share Posted July 23, 2014 Single-quotes nav atļauti JSONā. Quote Link to comment Share on other sites More sharing options...
jurchiks Posted July 23, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
spainis Posted July 24, 2014 Report Share Posted July 24, 2014 tāpēc, ka pirmais "izskatās" pēc JSON un otrais ir JS Quote Link to comment Share on other sites More sharing options...
jurchiks Posted July 24, 2014 Report Share Posted July 24, 2014 Būtu labāk uzrakstījis vienkārši "tas nav valid JSON"... Quote Link to comment Share on other sites More sharing options...
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.