SepiaGroup/Neo4jRestNet — Issue #2: Building rest urls fails
Author: promontis
Created: 2011-11-20 21:35:00+00:00
State: open

Hi,

While passing in a guid (or a base64 encoded one), the following function fails:

public static HttpStatusCode GetNode(string dbUrl, string IndexName, string Key, object Value, out string Response)

This is because JToken.FromObject(Value).ToString(Formatting.None) returns "\"dYeEasGVNUO0A4RAOhPNJw==\""

Do note the doubles quotes (with character escaping).

From a user POV, doing this conversion to a JToken is weird, as you are altering a value provided by my domain, something I only know. IMO you should only do a value.ToString and leave it up to the user to provide the correct translation in his ToString implementation.

Thnx