1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Cover JSON codec. 3.0.62

This commit is contained in:
winlin 2019-10-22 09:01:29 +08:00
parent c7602d8cee
commit e683f07715
2 changed files with 14 additions and 4 deletions

View file

@ -1577,7 +1577,7 @@ string SrsJsonAny::dumps()
return "\"" + to_str() + "\"";
}
case SRS_JSON_Boolean: {
return to_boolean()? "true":"false";
return to_boolean()? "true" : "false";
}
case SRS_JSON_Integer: {
return srs_int2str(to_integer());
@ -1600,11 +1600,9 @@ string SrsJsonAny::dumps()
return arr->dumps();
}
default: {
break;
return "null";
}
}
return "null";
}
SrsAmf0Any* SrsJsonAny::to_amf0()