Fixed json issues in API files