Mysterious JSON error

hi guys,

GridView-Widget of Kartik throws out following error:

SyntaxError: JSON.parse: unexpected character at line 1 column 9 of the JSON data

I absolutey have no idea,which JSON-File is wrong. I have several JSON files in my project.

Here is code:




.

.

.

        [

            'class' => 'kartik\grid\EditableColumn',

            'attribute' => 'population',

            'readonly' => function($model, $key, $index, $widget) {

                return (!$model->status); // do not allow editing of inactive records

            },

            'editableOptions' => [

                'header' => 'population',

                'inputType' => \kartik\editable\Editable::INPUT_SPIN,

                'options' => [

                    'pluginOptions' => ['min' => 100, 'max' => 1250000000]

                ]

            ],

            'hAlign' => 'right',

            'vAlign' => 'middle',

            'width' => '7%',

            'pageSummary' => true

        ],...



I’m having the same problem too

This thread is six years old and I don’t know if had been resolved but it should be quite easy to set breakpoint in point where the widget is created and trace its creation line by line. You’ll quick find where the error is coming from.

For me I have two modes: Applicants and JobOpenings I’m trying to make an editable column of applicants table column in the job-openings view