All,
With many thanks to Sergey, I added JSON and XMP to “/meta” and I folded in
MetadataEP into MetadataResource so that users can request a specific metadata
value(s). (TIKA-1497, TIKA-1499)
I also added a new endpoint “/rmeta” that is equivalent to tika-app’s –J
(TIKA-1498) – JSONified view of a list of metadata objects representing the
container document and all embedded docs…aka Jukka and Nick’s
RecursiveParserWrapper.
I also updated the jax-rs wiki to reflect these changes.
Please kick the tires and let us know if there are any surprises.
Best,
Tim
From: Peter Bowyer [mailto:[email protected]]
Sent: Thursday, December 18, 2014 8:58 AM
To: [email protected]
Subject: Outputting JSON from tika-server/meta
Hi,
I suspect this has a really simple answer, but it's eluding me.
How do I get the response from
curl -X PUT -T /path/to/file.pdf http://localhost:9998/meta
to be JSON and not CSV?
I've discovered JSONMessageBodyWriter.java
(https://github.com/apache/tika/blob/af19f3ea04792cad81b428f1df9f5ebbb2501913/tika-server/src/main/java/org/apache/tika/server/JSONMessageBodyWriter.java)
so I think the functionality is present, tried adding --header "Accept:
application/json" to the cURL call, in line with the documentation for
outputting CSV, but no luck so far.
Many thanks,
Peter