Import big JSON to Elasticstearch

Is this PHP? If so you're better off using the PHP client rather than rolling your own curl commands.