complete json serializer