Add JSON example
This commit is contained in:
parent
971e1e2e26
commit
a21fdce8fa
|
@ -1289,6 +1289,10 @@ This setting enables the second mechanism, otherwise by default the first will b
|
|||
A default JSON encoded list of objects must be returned. Each object
|
||||
corresponds to a matched user and needs the keys ``id`` and ``fullname``.
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
[{"id": "foo", "fullname": "Foo McFoo"}, {"id": "bar", "fullname": "Bar McBar"}]
|
||||
|
||||
.. note::
|
||||
Make sure your server script sets the header `Content-Type: application/json`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user