This is really a JavaScript question not a Django one.

But since I can see the problem...  ,

The issue is 'dissmal-info' isn't a valid Js identifier, the browser is trying 
to subtract the nonexistent 'info' variable from the 'dismissal' value. You 
should be able to use ['dismissal-info'] instead of . dismissal-info.







On 10 October 2020 07:19:06 BST, surendra bhaskar 
<surendra.bhaska...@siesgst.ac.in> wrote:
>*I am able to get all data from api but  not able to get certainvalues
>which have - in between of 2 words*
>"dismissal": "catch",
>                "SR": 120,
>                "6s": 0,
>                "4s": 2,
>                "M": 0,
>                "B": 10,
>                "R": 12,
>            "dismissal-info": "c Curran b Chawla", <== this type is not
>working
>                "batsman": "RG Sharma (c)",
>                "pid": "34102"
>
>
>* Trying this code to get data  *
> document.write(JSON.stringify(data.data.fielding[0].scores[0].SR)) <==
>working
> document.write(JSON.stringify(data.data.batting[0].scores[0].batsman))
><== working
>document.write(JSON.stringify(data.data.batting[0].scores[0].dismissal))
><== working
>
>document.write(JSON.stringify(data.data.batting[0].scores[0].dismissal-info))
><==                    showing  info is not defined
>*I am tried with a lot but finally failed to get this type of data so
>can
>you pls help me out *
>[image: image.png]
>*Thank You,*
>*Surendra Ediga*

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/FAD1747A-1EFB-4CFA-9F25-DFA7BB9EDA17%40gammascience.co.uk.

Reply via email to