ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KERNEL: Replace the library NXJSON(LGPL) with json-parser(BSD)

winlinvip opened this issue · comments

The jansson doesn't support single file.
cJSON is not sure to work with C++.
Seems json-parser is fine.

Update the research/api-server/server.py, response an object:

{
    "code": 0,
    "data": null
}

SRS http hooks also support a single code:int response, which is SRS1 style.

Replace NXJSON which use LGPL.

Fixed