original_string: protected function reverseJsonInContext(array &$context)
    {
      if (!$context) {
        return;
      }
  
      foreach ($context as $key => $val) {
        if (!$val || !is_string($val) || !($val[0] == '{' || $val[0] == '[')) {
          continue;
        }
  
        $json = @json_decode($val);
        if (is_object($json) || is_array($json)) {
          $context[$key] = $json;
        }
      }
    }
code: protected function reverseJsonInContext(array &$context)
    {
      if (!$context) {
        return;
      }
  
      foreach ($context as $key => $val) {
        if (!$val || !is_string($val) || !($val[0] == '{' || $val[0] == '[')) {
          continue;
        }
  
        $json = @json_decode($val);
        if (is_object($json) || is_array($json)) {
          $context[$key] = $json;
        }
      }
    }
code_tokens: protected function reverseJsonInContext ( array & $ context ) { if ( ! $ context ) { return ; } foreach ( $ context as $ key => $ val ) { if ( ! $ val || ! is_string ( $ val ) || ! ( $ val [ 0 ] == '{' || $ val [ 0 ] == '[' ) ) { continue ; } $ json = @ json_decode ( $ val ) ; if ( is_object ( $ json ) || is_array ( $ json ) ) { $ context [ $ key ] = $ json ; } } }
docstring: Reverses JSON encoded PHP arrays and objects so that they log better.
  
  @param array $context The log context
docstring_tokens: Reverses JSON encoded PHP arrays and objects so that they log better .