Skip to content

Commit 122971a

Browse files
committed
Updating README.rst .
1 parent c5fb443 commit 122971a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Sample User Apps/Modules/Scripts
259259

260260
- As the default value of the ``result_model`` argument suggests ('**DictOfList**'), the result structural model received by the client will be a dictionary of array, like:
261261

262-
.. code-block:: JSON
262+
.. code-block:: python
263263
264264
{
265265
"Column_A": [value_a1, value_a2, value_a3, ...],
@@ -276,7 +276,7 @@ Sample User Apps/Modules/Scripts
276276
- If you want to pass the whole result directly to a `Table-Valued Parameter <https://github.com/DataBooster/DbWebApi#table-valued-parameters>`__ of a SQL Server stored procedure,
277277
it is suitable to set the ``result_model`` parameter to '**SqlTvp**', and the result structure looks like:
278278

279-
.. code-block:: JSON
279+
.. code-block:: python
280280
281281
{
282282
"TableValuedParam":
@@ -290,7 +290,7 @@ Sample User Apps/Modules/Scripts
290290
291291
- '**ListOfDict**' is also a commonly used ``result_model``, it looks like:
292292

293-
.. code-block:: JSON
293+
.. code-block:: python
294294
295295
[
296296
{"Column_A": value_a1, "Column_B": value_b1, "Column_C": value_c1, ... },
@@ -301,7 +301,7 @@ Sample User Apps/Modules/Scripts
301301
302302
- There is another built-in ``result_model``: '**ListOfList**', which separates the column header from the value matrix, it looks like:
303303

304-
.. code-block:: JSON
304+
.. code-block:: python
305305
306306
{
307307
"column_names": ["Column_A", "Column_B", "Column_C", ...],

0 commit comments

Comments
 (0)