convert json_encode and json_decode to Json class calls, fix some leftover OBJ to ASSOC conversion work