Fixed json error in api