
p.location-badge.
  exported from <a href='../core'>angular2/core</a>
  defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/core/pipes/json_pipe.ts#L4-L34">angular2/src/core/pipes/json_pipe.ts (line 4)</a>

:markdown
  Implements json transforms to any object.
  
  # Example
  
  In this example we transform the user object to json.
  
   ```
  @Component({
    selector: "user-cmp"
  })
  @View({
    template: "User: {{ user | json }}"
  })
  class Username {
   user:Object
   constructor() {
     this.user = { name: "PatrickJS" };
   }
  }
  
  ```
  
  

.l-main-section
  h2 Annotations
  .l-sub-section
    h3.annotation Pipe
    pre.prettyprint
      code.
        @Pipe({name: &#39;json&#39;})


  .l-sub-section
    h3.annotation Injectable
    pre.prettyprint
      code.
        @Injectable()


.l-main-section
  h2 Members
  .l-sub-section
    h3#transform transform

    
    pre.prettyprint
      code.
        transform(value: any, args?: any[])
    
    :markdown




