WA: simplify json handling