JSON responses contain extraneous #text key/values
With exist-db 4.x through 6.2.0, JSON responses contain extraneous #text key/values. For example
$ curl -s -H "Accept: application/json" "http://localhost:8100/exist/restxq/Spase/NumericalData?ResourceID=spase://NASA/NumericalData/ACE/MAG/L2/PT16S" | jq | head -15
{
"collection": {
"resource": {
"Spase": {
"xsi:schemaLocation": "http://www.spase-group.org/data/schema https://www.spase-group.org/data/schema/spase-2_3_2.xsd",
"#text": [
"\n ",
"\n ",
"\n"
],
"Version": "2.3.2",
"NumericalData": {
"#text": [
"\n ",
"\n ",
This doesn't occur with XML output. This is a result of exist-db issue 4732. Until the exist-db issue is resolved, clients should request XML or ignore all #text values in the JSON.