Skip to content

The "json" filter not support to use "0" as parameter #2888

@fengyuanchen

Description

@fengyuanchen

Vue.js version

1.0.24

Reproduction Link

Steps to reproduce

new Vue({
  data: {
    person: {
      name: 'Felix',
    },
  },
});
<pre>{{ person | json 0 }}</pre>

What is Expected?

{"name":"Felix"}

What is actually happening?

{
  "name": "Felix"
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions