| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Synopsis | ||||||||||||||||||||||||||||||
| Documentation | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| By default, Haskell record field names are converted into JSON object field names by stripping any initial underscores. Specialize this method to define a different behavior. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| You can specialize this method to prevent fields from being serialized. The method should return a list of the Haskell names of the fields to be excluded. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Types that will be converted to JSON arrays can override this method to specify additional elements to be prepended to the array. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Types that will be converted to JSON arrays can override this method to specify additional elements to be appended to the array. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Types that will be converted to JSON objects can override this method to specify additional fields of the object. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| This is the implementation of toJson for the generic instance declaration, but it's useful to be able to use the same implentation for other instance declarations which override the default implementation of exclude. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| In order to specify default values for required fields of a JSON object, specialize this method in the instance definition for the relevant datatype. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Converts a String (interpreted as a true unicode String) to an instance of JsonData. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Converts a ByteString to an instance of JsonData (unicode encoding is detected automatically). | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Converts a JSON String (interpreted as a true unicode string) to a value of the type given by the first (dummy) argument. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Converts a JSON ByteString (with unicode encoding automatically detected) to a value of the type given by the first (dummy) argument. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Converts a value to an ASCII-only JSON String. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Nested Unions are left-branching by convention (since this is what you get by using the constructor as an infix operator). | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Produced by Haddock version 2.1.0 |