Cheers,
/peter neubauer
Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter @peterneubauer
brew install neo4j && neo4j start
heroku addons:add neo4j
---------- Forwarded message ----------
From: unhandled
<reply+i-2689587-0f51b033986751d...@reply.github.com>
Date: Fri, Dec 30, 2011 at 4:59 PM
Subject: [community] Listing indices using REST difficult to deserialize (#159)
To: Neo4j build server <build...@neotechnology.com>
While listing indices, the results are returned in a way that makes it
difficult to deserialize the objects using something like JSON.NET
Instead of :
{
"favorites" : {
"template" :
"http://localhost:7474/db/data/index/node/favorites/{key}/{value}",
"provider" : "lucene",
"type" : "exact"
}
}
Maybe something similar to the following would be preferable:
{
{
"name": "favorites",
"properties" : {
"template" :
"http://localhost:7474/db/data/index/node/favorites/{key}/{value}",
"provider" : "lucene",
"type" : "exact"},
}
}
Having attribute names constant facilitates automatic deserialization.
---
Reply to this email directly or view it on GitHub:
https://github.com/neo4j/community/issues/159
However as you say, the cost comes from keeping this alive alongside our existing API (for two releases). From memory, I don't think I like playing with our JSON producing code like this - it's very convention based and supporting two conventions might be a right PITA.
But if the folks producing REST client libraries push for it, then we should do it.
So: Max? Josh? Tatham? Andreas? Others?
Jim
IIRC, doing it proper meas that the client drivers have to be aware of
versioning, and we might need to tighter integrate the client drivers
with the core builds ...
Cheers,
/peter neubauer
Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter @peterneubauer
brew install neo4j && neo4j start
heroku addons:add neo4j
Jim