Fix #1344: use #as_json
instead of #to_json
#1346
Merged
#as_json
instead of #to_json
#1346