How to convert csv to json format ?

Solution Verified - Updated -

Issue

  • I am trying to create a route that will read from a file that has JSON records delimited by New line character. So the I am Reading the records for the File and spliting them based on New line token and need to send this to Elastic Search. However the problem is when I read this records Fuse will treat it as a string hence I loose the JSON Format of the Record.
  • When I am trying to run my Blueprint Project as Local camel context, it is failing with error
MojoExecutionException: InvocationTargetException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.