Add JSON parsing and proper Elastic bulk index command build