neo4j :: NeoNode :: from_json_object
Note: Here, the "id"
is optional and ignored.
SEE: JsonGraph
# Retrieve the node from the specified JSON value.
#
# Note: Here, the `"id"` is optional and ignored.
#
# SEE: `JsonGraph`
init from_json_object(o: JsonObject) do
init
var labels = o["labels"].as(JsonArray)
for lab in labels do self.labels.add(lab.as(String))
var json_properties = o["properties"].as(JsonObject)
properties.add_all(json_properties)
end
lib/neo4j/graph/json_graph_store.nit:253,2--264,4