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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content