added json unmarshaling and library for pdf generation