2016-05-04 12 views
3

Mein json Code JSon: InputWie decode in zoho

{"responseCode":"200","responseText":"ID: 2ce934c860f48b02fb755178f8ac0a2"} 

Wie decode in zoho Schöpfer JSon ==> Das ist richtig?

responseCode=jsondata.getJSON("responseCode"); 
responseText=jsondata.getJSON("responseText"); 
SMS_ID=responseText.getJSON("ID"); 
+0

Bitte geben Sie mir diese Frage beantworten nicht PHP Dies wird zoho Schöpfer –

+0

Sie Ihre Frage mit PHP markiert haben, so dass Sie Ihre json in PHP bekam ?! – Rizier123

+0

getaggt php mit zoho –

Antwort

2

Das ist fast richtig. Beachten Sie, dass "ID: 2ce934c860f48b02fb755178f8ac0a2" nur eine Zeichenfolge und kein JSON-Element ist.

Versuchen mit:

responseText=jsondata.getJSON("responseText"); 
SMS_ID = responseText.remove("ID: "); 
+0

Bitte helfen Sie mir I Status von diesem Code finden { "Response": "200", "response": "ID: 72e107588bc1e553427c8c72c6a4695a Status: 009"} –

+1

versuchen, mit: SMS_ID = responseText.substring (45); –

+0

Wie URL von unten Code abrufen {"projects": [{"is_strict": "Nein", "Rolle": "admin", "owner_name": "James Lozos", "IS_BUG_ENABLED": true, "created_date_long ": 1502180785112," owner_id ":" 647743525 "," link ": {" Aufgabe ": {" url ":" https://projectsapi.zoho.com/restapi/portal/sqmscrm/projects/1115954000000093005/tasks/ " }}]} –