ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
1081
1081
EMPFEHLEN
-
15.06.11 19:42 #1
- Registriert seit
- Jun 2007
- Ort
- Berlin Fhain
- Beiträge
- 225
Hallo,
ich prüfe gerade mit nem Validator nen JSON- String und weiß aber nicht wie ichs richtig schreiben soll.
Darstellen will ich einen Array, der die "matches" enthält. Ein Match besteht aus nem "Profile"-Objekt plus Zusatzinfos.
Der Validator meckert bei meinem "match"-Objekt.
Nen JsonProfi findet den Fehler sicher sofort.
Vielen Dank schonmal jetzt
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ "matcharray": [ "match": { "success": "True", "isNew": "True", "profile": { "userid": "FHJKDFC", "first_name": "Max", "image": "1283093", "birthday": "2000-10-10" } } ] }Geändert von rollerueckwaerts (15.06.11 um 19:50 Uhr)
-
15.06.11 19:48 #2
Eine Array [] darf keine Keys enthalten: "match"
oderCode :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{ "matcharray": { "match": { "success": "True", "isNew": "True", "matchedBy": "Maybe", "profile": { "userid": "FHJKDFC", "first_name": "Max", "image": "1283093", "birthday": "2000-10-10", "height": "178", "weight": "55", "isOnline": "True" } } } }
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ "matcharray": [{ "success": "True", "isNew": "True", "matchedBy": "Maybe", "profile": { "userid": "FHJKDFC", "first_name": "Max", "image": "1283093", "birthday": "2000-10-10", "height": "178", "weight": "55", "isOnline": "True" } }] }
Ähnliche Themen
-
Frage zu JSON. HTML-Konstrukt mit JSON übergeben
Von Jan-Frederik Stieler im Forum Javascript & AjaxAntworten: 2Letzter Beitrag: 16.04.11, 16:04 -
Hilfe Benötigt
Von APoCx im Forum Javascript & AjaxAntworten: 1Letzter Beitrag: 10.11.08, 22:01 -
Riesenproblem seit 7 tagen... Hilfe... AJAX/JSON
Von bombbass im Forum Javascript & AjaxAntworten: 0Letzter Beitrag: 26.11.07, 16:33 -
Hilfe benötigt!
Von qemamkeku im Forum TypografieAntworten: 3Letzter Beitrag: 07.07.04, 13:49 -
Hilfe Benötigt !
Von GhostGhost im Forum NetzwerkeAntworten: 4Letzter Beitrag: 24.04.04, 22:37





Zitieren
Login





