added serializer gem, serialized post, items and itemtype in json object