roughly add json serializer