json - Formatted Text via webservice -
i have webservice, returns json-objects. json objects (among other properties) contain text. text has formatted display in clients browser. server holds database texts stored in it. planning have 50.000 texts stored , thousand requests day.
i wondering, how should handle formatting. should store texts html , send html inside json objects. in personal opinion approach contradicts idea of json webservice, used not have send html every time...
as formatting limited basic stuff (strong, emphazised , maybe 3 or 4 more) should mark them in way , formatting clientside (like on stackoverflow *foo*
becomes foo.
are there other ways didn't thought of? advantages , disadvantegs of approaches?
to clarifiy: storing texts in database , sending them via json-webservice unalterable decisions
are there existing libraries handle clientside formatting performant?
Comments
Post a Comment