]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.data/scl/Data/Json.md
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.data / scl / Data / Json.md
index fe8e7218f9028c35768ba0580a31895b5f8914e9..b95648e53d8844092ab36c5c7b77c3a037019d4c 100644 (file)
@@ -1,42 +1,42 @@
-# Basic functions\r
-\r
-::value[toJsonString, fromJsonString]\r
-\r
-# Supported value types\r
-\r
-This module supports the following value types:\r
-\r
-```\r
-instance Json String\r
-instance Json Short\r
-instance Json Integer\r
-instance Json Long\r
-instance Json Float\r
-instance Json Double\r
-\r
-instance (Json a) => Json [a]\r
-instance (Json a) => Json (Maybe a)\r
-\r
-instance Json ()\r
-instance (Json a, Json b) => Json (a, b)\r
-instance (Json a, Json b, Json c) => Json (a, b, c)\r
-instance (Json a, Json b, Json c, Json d) => Json (a, b, c, d)\r
-instance (Json a, Json b, Json c, Json d, Json e) => Json (a, b, c, d, e) \r
-\r
-instance Json Json\r
-```\r
-\r
-# Generic JSON Type\r
-\r
-::data[Json, JsonField]\r
-\r
-# Adding support for additional value types\r
-\r
-::data[JsonGenerator, JsonParser]\r
-::class[Json]\r
-\r
-It is enough to implement `toJson` and `fromJson`.\r
-\r
-# Undocumented entities\r
-\r
+# 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