JSON错误我无法修复?(期待“字符串”,“数量”,“空”,“真实”,“假”,“{”、“[”,有“定义”)

时间:2021-01-27 17:04:45

I am getting the following error and I have no idea how to fix it:

我得到以下错误,我不知道如何修复它:

Blockquote Error: Parse error on line 1660: ..., "Description": "Consultant psychiat ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

Blockquote错误:第1660行语法错误:…“描述”:“顾问psychiat - - - - - - - - - - - - - - - - - - - - - - - ^期待“字符串”,“数量”,“空”,“真正的”,“假”,“{”、“[”,有“未定义的

Here's the portion of the file that is throwing this error:

这是文件中抛出这个错误的部分:

{
        "ItemNum": "289",
        "ItemStartDate": "01.07.2008",
        "Category": "1",
        "Group": "A8",
        "ItemType": "S",
        "FeeType": "N",
        "NewItem": "N",
        "ItemChange": "N",
        "AnaesChange": "N",
        "DescriptorChange": "N",
        "FeeChange": "N",
        "EMSNChange": "N",
        "EMSNCap": "P",
        "BenefitType": "C",
        "BenefitStartDate": "01.07.2008",
        "FeeStartDate": "01.11.2012",
        "ScheduleFee": "263.90",
        "Benefit75": "197.95",
        "Benefit85": "224.35",
        "EMSNStartDate": "01.11.2012",
        "EMSNMaximumCap": "500.00",
        "EMSNPercentageCap": "300.00",
        "DescriptionStartDate": "01.11.2011",
        "Description": "consultant psychiatrist, referred consultation for assessment, diagnosis and development of a treatment and management plan for autism or any other pervasive developmental disorder - surgery or hospital professional attendance of at least 45 minutes duration, at consulting rooms or hospital, by a consultant physician in his or her specialty of psychiatry, for assessment, diagnosis and the preparation of a treatment and management plan for a child aged under 13 years, with autism or any other pervasive developmental disorder, who has been referred to the consultant psychiatrist by a referring practitioner, if the consultant psychiatrist does the following:(a) undertakes a comprehensive assessment of the child and forms a diagnosis (using the assistance of one or more  allied health providers where appropriate)(b) develops a treatment and management plan which must include the following: (i) the outcomes of the assessment; (ii) the diagnosis or diagnoses; (iii) opinion on risk assessment; (iv) treatment options and decisions; (v) appropriate medication recommendations, where necessary.(c) provides a copy of the treatment and management plan to the: (i) referring practitioner; and (ii) relevant allied health providers (where appropriate).not being an attendance on a child in respect of whom payment has previously been made under this item or items 135, 137 or 139."
    },

What am I doing wrong?

我做错了什么?

3 个解决方案

#1


0  

remove the , at the end use http://jsonviewer.stack.hu/ to verify it works

删除,最后使用http://jsonviewer.stack。hu/用于验证它是否有效

#2


0  

This error causes because of quotes we have used in our JSON. Maybe somewhere you have used “ instead of " in your JSON. For resolving this error you have to replace all “ quotes with ".Please find validation checking result of your JSON as followJSON错误我无法修复?(期待“字符串”,“数量”,“空”,“真实”,“假”,“{”、“[”,有“定义”)

这个错误是由于我们在JSON中使用的引号引起的。也许你在JSON中使用了“而不是”。要解决这个错误,你必须用“引号”替换所有的“引号”。请查看您的JSON的验证检查结果如下

#3


0  

I have some problem. Now if you run composer -vvv update you get

我有一些问题。现在,如果您运行composer -vv更新,您将得到

Reading composer.json of git@bitbucket.org:test/test.git (master)
    Executing command (C:/Users/xxx/AppData/Local/Composer/vcs/git-test/test.git/): git show "72721b472adb50643e9bfd1745544db3522b58d2":"compoSkipped branch master, "72721b472adb50643e9bfd1745544db3522b58d2:composer.json" does not contain valid JSON
    Parse error on line 1:
    C:\Users\xxx\AppD
    ^
    Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

From verbose mode you can see that git is getting json from

从详细模式中可以看到git从json中获取

 git show "72721b472adb50643e9bfd1745544db3522b58d2":"compoSkipped branch master, "72721b472adb50643e9bfd1745544db3522b58d2:composer.json"

The problem is in the console encoding from which you are running composer. In my case I have console encoding in CP-1250. When I change console encoding to ANSI it work without problem.

问题在于运行composer的控制台编码。在我的例子中,我有CP-1250中的控制台编码。当我将控制台编码更改为ANSI时,没有问题。

#1


0  

remove the , at the end use http://jsonviewer.stack.hu/ to verify it works

删除,最后使用http://jsonviewer.stack。hu/用于验证它是否有效

#2


0  

This error causes because of quotes we have used in our JSON. Maybe somewhere you have used “ instead of " in your JSON. For resolving this error you have to replace all “ quotes with ".Please find validation checking result of your JSON as followJSON错误我无法修复?(期待“字符串”,“数量”,“空”,“真实”,“假”,“{”、“[”,有“定义”)

这个错误是由于我们在JSON中使用的引号引起的。也许你在JSON中使用了“而不是”。要解决这个错误,你必须用“引号”替换所有的“引号”。请查看您的JSON的验证检查结果如下

#3


0  

I have some problem. Now if you run composer -vvv update you get

我有一些问题。现在,如果您运行composer -vv更新,您将得到

Reading composer.json of git@bitbucket.org:test/test.git (master)
    Executing command (C:/Users/xxx/AppData/Local/Composer/vcs/git-test/test.git/): git show "72721b472adb50643e9bfd1745544db3522b58d2":"compoSkipped branch master, "72721b472adb50643e9bfd1745544db3522b58d2:composer.json" does not contain valid JSON
    Parse error on line 1:
    C:\Users\xxx\AppD
    ^
    Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

From verbose mode you can see that git is getting json from

从详细模式中可以看到git从json中获取

 git show "72721b472adb50643e9bfd1745544db3522b58d2":"compoSkipped branch master, "72721b472adb50643e9bfd1745544db3522b58d2:composer.json"

The problem is in the console encoding from which you are running composer. In my case I have console encoding in CP-1250. When I change console encoding to ANSI it work without problem.

问题在于运行composer的控制台编码。在我的例子中,我有CP-1250中的控制台编码。当我将控制台编码更改为ANSI时,没有问题。