X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.data%2Fscl%2FData%2FJson.md;h=b95648e53d8844092ab36c5c7b77c3a037019d4c;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=fe8e7218f9028c35768ba0580a31895b5f8914e9;hpb=602614f4502aae85ecf3967abb7152d2d62903e3;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.data/scl/Data/Json.md b/bundles/org.simantics.scl.data/scl/Data/Json.md index fe8e7218f..b95648e53 100644 --- a/bundles/org.simantics.scl.data/scl/Data/Json.md +++ b/bundles/org.simantics.scl.data/scl/Data/Json.md @@ -1,42 +1,42 @@ -# Basic functions - -::value[toJsonString, fromJsonString] - -# Supported value types - -This module supports the following value types: - -``` -instance Json String -instance Json Short -instance Json Integer -instance Json Long -instance Json Float -instance Json Double - -instance (Json a) => Json [a] -instance (Json a) => Json (Maybe a) - -instance Json () -instance (Json a, Json b) => Json (a, b) -instance (Json a, Json b, Json c) => Json (a, b, c) -instance (Json a, Json b, Json c, Json d) => Json (a, b, c, d) -instance (Json a, Json b, Json c, Json d, Json e) => Json (a, b, c, d, e) - -instance Json Json -``` - -# Generic JSON Type - -::data[Json, JsonField] - -# Adding support for additional value types - -::data[JsonGenerator, JsonParser] -::class[Json] - -It is enough to implement `toJson` and `fromJson`. - -# Undocumented entities - +# Basic functions + +::value[toJsonString, fromJsonString] + +# Supported value types + +This module supports the following value types: + +``` +instance Json String +instance Json Short +instance Json Integer +instance Json Long +instance Json Float +instance Json Double + +instance (Json a) => Json [a] +instance (Json a) => Json (Maybe a) + +instance Json () +instance (Json a, Json b) => Json (a, b) +instance (Json a, Json b, Json c) => Json (a, b, c) +instance (Json a, Json b, Json c, Json d) => Json (a, b, c, d) +instance (Json a, Json b, Json c, Json d, Json e) => Json (a, b, c, d, e) + +instance Json Json +``` + +# Generic JSON Type + +::data[Json, JsonField] + +# Adding support for additional value types + +::data[JsonGenerator, JsonParser] +::class[Json] + +It is enough to implement `toJson` and `fromJson`. + +# Undocumented entities + ::undocumented[] \ No newline at end of file