Retrieve the node from the specified JSON value.

Note: Here, the "id" is optional and ignored.

SEE: JsonGraph

var node = new NeoNode.from_json("""
{
"labels": ["foo", "Bar"],
"properties": {
    "baz": 42
}
}
""")
assert ["foo", "Bar"] == node.labels
assert 42 == node["baz"]

Property definitions

neo4j :: json_graph_store $ NeoNode :: from_json
	# Retrieve the node from the specified JSON value.
	#
	# Note: Here, the `"id"` is optional and ignored.
	#
	# SEE: `JsonGraph`
	#
	#     var node = new NeoNode.from_json("""
	#     {
	#	"labels": ["foo", "Bar"],
	#	"properties": {
	#		"baz": 42
	#	}
	#     }
	#     """)
	#     assert ["foo", "Bar"] == node.labels
	#     assert 42 == node["baz"]
	init from_json(t: Text) do
		from_json_object(t.parse_json.as(JsonObject))
	end
lib/neo4j/graph/json_graph_store.nit:233,2--251,4