Use serializer to extract input data
Merge pull request #32 from bobisjan/serializer-extract

Use serializer to extract input data, fix #31