Skip to content
mkernel edited this page Apr 3, 2013 · 8 revisions

Aussen "rum" beim Methodenaufruf sind notwendig:

{
"method":"add",
"params":[42,3]
}

Das ist ein Beispiel für einen Methodenaufruf. Die Antwort sieht dann so aus:

{
  "result":45
}
debug_json = {
	"id": 42,
	"container": [
		{
			"id": 1,
			"title": "Bild header",
			"type":"C-12",
			"style": "",
			"slots": [
				{ "id": 1, "boxes": [] }
			]
		},
		{
			"id": 2,
			"title": "Artikel und Twitterbox",
			"type": "C-8-4",
			"slots": [
				{ "id": 2, "boxes": [
					{
						"id": 10,
						"title":"",
						"type": "",
						"style": "",
						"prolog":"",
						"epilog":"",
						"read-more-text":"",
						"read-more-link":"",
						"content":""
					}, {
						"id": 12,
						"title":"",
						"type": "",
						"style": "",
						"prolog":"",
						"epilog":"",
						"read-more-text":"",
						"read-more-link":"",
						"content":""
					}
				] },
				{ "id": 3, "boxes": [] }
			]
		},
		{
			"id": 3,
			"title": "Artikel und Twitterbox",
			"type": "C-4-8",
			"slots": [
				{ "id": 4, "boxes": [] },
				{ "id": 5, "boxes": [] }
			]
		}
	]
}
Clone this wiki locally