Might be clearer if you do client_json.inspect here, so that if it is nil it prints "nil" not "".

Otherwise, ltgm.