aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value-to-json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/value-to-json.cc')
-rw-r--r--src/libexpr/value-to-json.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/value-to-json.cc b/src/libexpr/value-to-json.cc
index b08d82497..b0cf85e21 100644
--- a/src/libexpr/value-to-json.cc
+++ b/src/libexpr/value-to-json.cc
@@ -71,11 +71,11 @@ void printValueAsJSON(EvalState & state, bool strict,
break;
}
- case tList: {
+ case tList1: case tList2: case tListN: {
JSONList json(str);
- for (unsigned int n = 0; n < v.list.length; ++n) {
+ for (unsigned int n = 0; n < v.listSize(); ++n) {
json.elem();
- printValueAsJSON(state, strict, *v.list.elems[n], str, context);
+ printValueAsJSON(state, strict, *v.listElems()[n], str, context);
}
break;
}