replaced print_r by json_encode for DebugMethodResolver