Switch from libjson to WJElement for JSON