From b73645ad8f1cf8cca9c93f68ecafec16ddd9b364 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 24 Oct 2014 16:35:47 +0100 Subject: [PATCH] Try turning on syntax high-lighting for JSON examples --- specification/30_server_server_api.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/specification/30_server_server_api.rst b/specification/30_server_server_api.rst index 8d07b3f4..49a02887 100644 --- a/specification/30_server_server_api.rst +++ b/specification/30_server_server_api.rst @@ -78,7 +78,7 @@ Transaction Fields ``edus`` List of Objects List of ephemeral messages. ==================== =================== ====================================== -:: +.. code:: json { "transaction_id":"916d630ea616342b42e98a3be0b74113", @@ -140,7 +140,7 @@ Required PDU Fields ``is_state`` Boolean True if this PDU is updating room state ==================== ================== ======================================= -:: +.. code:: json { "context":"#example:green.example.com", @@ -196,7 +196,7 @@ keys exist to support this: ``user_id`` String The user updating the state. ======================== ============ ========================================= -:: +.. code:: json {..., "is_state":true, @@ -221,12 +221,14 @@ destination home server names, and the actual nested content. ``content`` Object Content of the ephemeral message. ======================== ============ ========================================= -:: +.. code:: json - {"edu_type":"m.presence", + { + "edu_type":"m.presence", "origin":"blue", "destination":"orange", - "content":...} + "content":{...} + } Protocol URLs