[nim] Series now can convert itself to json. Makes serialisation to json for the API endpoints centralised.