Files
kubernetes/pkg/util
k8s-merge-robot 5ca769e0a3 Merge pull request #25038 from mfojtik/json-line
Automatic merge from submit-queue

Display line number on JSON errors

Related issue: https://github.com/kubernetes/kubernetes/issues/12231

This PR will introduce line numbers for all JSON errors in the CLI:

(this is existing error reporting for YAML)
```console
$ kubectl create -f broken.yaml
yaml: line 8: mapping values are not allowed in this context
```

(this is error reporting proposed in this PR for JSON)
```console
$ kubectl create -f broken.json
json: line 35: invalid character '{' after object key
```

(and this is the current reporting:)
```console
$ kubectl create -f broken.json
invalid character '{' after object key
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-10 02:49:01 -07:00
..
2016-04-13 09:29:58 -05:00
2015-10-22 16:40:59 -04:00
2015-10-22 16:40:59 -04:00
2016-03-21 14:50:57 +08:00
2016-03-21 20:20:05 +08:00
2016-03-21 20:20:05 +08:00
2016-03-21 20:21:39 +08:00
2016-03-11 13:52:45 +08:00
2016-03-03 15:56:09 -08:00
2016-02-10 11:38:50 -08:00
2016-05-04 15:02:07 +02:00
2016-01-06 22:28:58 +08:00
2016-02-09 13:20:31 -08:00
2016-04-11 16:23:28 -04:00
2016-03-16 16:22:54 -04:00
2015-08-05 17:52:56 -07:00
2016-03-17 09:30:02 +01:00
2015-11-13 15:56:27 -08:00
2016-03-21 23:59:58 -04:00
2016-02-07 21:09:06 +01:00
2016-05-06 13:10:47 +02:00
2016-04-07 15:10:50 -04:00
2016-04-07 15:10:50 -04:00
2015-08-06 11:39:29 +02:00
2015-08-06 11:39:29 +02:00
2016-03-21 20:21:39 +08:00
2016-04-29 17:12:10 -04:00
2016-01-27 15:39:23 +01:00