json: Optimize writing a bit.

This improves the responsiveness of certain APIs.
This commit is contained in:
Unknown W. Brackets 2018-04-30 20:38:39 -07:00
parent ccea863f00
commit fc8ad3b47b
7 changed files with 121 additions and 91 deletions

View file

@ -34,7 +34,7 @@ struct GameStatusEvent {
j.writeString("title", g_paramSFO.GetValueString("TITLE"));
j.pop();
} else {
j.writeRaw("game", "null");
j.writeNull("game");
}
j.end();
return j.str();