Aeson is the most widely used library for parsing JSON (in Haskell, of course, I'm not talking about the whole world). It's also hopelessly magical for people who try to learn it by looking at provided examples, and existing tutorials don't help that much, so I wrote my own.
Showing posts with label json. Show all posts
Showing posts with label json. Show all posts
Wednesday, May 2, 2018
Aeson: the tutorial
Aeson is the most widely used library for parsing JSON (in Haskell, of course, I'm not talking about the whole world). It's also hopelessly magical for people who try to learn it by looking at provided examples, and existing tutorials don't help that much, so I wrote my own.
Saturday, February 24, 2018
Wednesday, January 17, 2018
Tutorial: parsing JSON with OCaml
In this article, I’m going to share a little bit of knowledge introducing a brief example of parsing data in OCaml using ocamllex and menhir in a step-by-step tutorial. For those opting to use the repository, you can get it here.
Friday, December 22, 2017
Go by Example : JSON
In order to use the values in the decoded map, we’ll need to cast them to their appropriate type. For example here we cast the value in num to the expected float64 type.
Monday, December 18, 2017
Proper way how-to marshal and unmarshal Golang structs within the Redis cache
Now this one will be really simple, and, regardless of that there are many ways how you can encode and decode structs, I’ve chosen JSON as a package for encoding and decoding simply because it’s very easy to read caches, you can use struct tags within and in general, I love JSON.
Thursday, May 11, 2017
json-api-normalizer: легкий способ подружить Redux и JSON API
В последнее время набирает популярность стандарт JSON API для разработки веб-сервисов.
Subscribe to:
Posts (Atom)
bundlephobia
JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...
-
Programmers almost always need the ability to find and replace certain text across multiple files in their projects. Most IDEs provide find ...
-
This is yet another rails stack installation how to. It is useful for installing a production rails hosting environment using Nginx as the ...
-
Git is a Version Control System , it is used to keep a history of all the changes you made into your code, manage releases, makes it easier...