You can write note in JSON format.
We have defined several JSON templates:
- Bookmark
- Money: payment/income
- Collection
- todo/task
-
By default, there must be a JSON code view with highlight supported.
$("#jsoncode").JSONView(json);
1.1 By default, there may be a hierarchy view for json content, IF there is no graphprocessor
likevis/network
ord3
orcytoscape
. -
If the root has a
items
property and the type its value is array, and the root has atemplate
property, there will be a Template view. The templates currently supported: bookmark -
If the root has a
items
property and the type its value is array, there will be a DataTable view.
// check
bool hasItemsAndIsArray = Model != null && Model.Content.Token["items"] != null && Model.Content.Token["items"].Type == Newtonsoft.Json.Linq.JTokenType.Array;
// json to html table
if (json["items"] != null) {
var jsonHtmlTable = ConvertJsonToTable(json["items"], 'jsonTable', 'dataTable', 'Link');
$("#datatable").append(jsonHtmlTable);
$("#jsonTable").DataTable();
}
- If the root has a
processor
property and its value isvis/network
, there will be a Vis/Network view. - If the root has a
type
property and its value isAdaptiveCard
, there will be a Adaptive Card view.
- Personanl navigation page: /{username}/[navigation|123]
Based on this project: https://github.com/xcatliu/123
Web Frontend:
JSON Editor
Backend database:
Azure Cosmos DB
Each document item in the DB has a size limit: 2MB. So each json document has a capacity limit.