Basic yojson tools