Fixes SPARQL JSON query results blank node serialization

pull/41/head
Tpt 4 years ago
parent 974e5d1e1a
commit 2457268f5f
  1. 2
      lib/src/sparql/json_results.rs

@ -51,7 +51,7 @@ pub fn write_json_results<W: Write>(results: QueryResult<'_>, mut sink: W) -> Re
} }
Term::BlankNode(bnode) => { Term::BlankNode(bnode) => {
sink.write_all(b":{\"type\":\"bnode\",\"value\":")?; sink.write_all(b":{\"type\":\"bnode\",\"value\":")?;
write!(sink, "{}", bnode.as_str())?; write_escaped_json_string(bnode.as_str(), &mut sink)?;
sink.write_all(b"}")?; sink.write_all(b"}")?;
} }
Term::Literal(literal) => { Term::Literal(literal) => {

Loading…
Cancel
Save