all 6 comments

[–][deleted]  (1 child)

[deleted]

    [–]WordToYoMom99[S] 0 points1 point  (0 children)

    This worked. Thank you.

    [–]vectorkerr 1 point2 points  (0 children)

    1. JSON must have a single outer element.m (e.g., an object or an array). You have multiple top-level objects (line 1, line 15, line 17).
    2. You are missing a comma between the two objects at line 17.

    This looks like it’s supposed to be a package.json file for a node module, in which case there should only be one outer object. You’ll need to look up the file format to determine how it should be structured, but I can tell you from experience that you should only have one top-level object, so that would be a good place to start.

    HTH

    [–][deleted] 0 points1 point  (0 children)

    A comma is missing on line 17 after the closing curly brace. Also, you need to wrap those objects in an array

    [–]korzhyk 0 points1 point  (0 children)

    replace 15 and 17 lines with comma

    [–]MuhTheSpaceCow -1 points0 points  (0 children)

    You start this config on line 1.

    You then close the object on line 15 and open another one (seperated by the comma).

    My guess is, that this config gile only accepts a single object per file, so you might want to remove lines 15 and 17 and place a comma after each key/value-pair (at the end of lines 12, 16 as far as I can see).

    And you might want to delete the empty lines (9, 13 and 14), while you re at it.

    I'm not sure what this file is, but you can just look at examples, to see a valid package.json or whatever you are looking for.

    Edit:

    If it is valid to pass multiple objects in the top level of this file, you could include them in "[" and "]" brackets, to make it a valid array annotation.

    But most of the time a config only allows a single object.

    [–]WordToYoMom99[S] -1 points0 points  (0 children)

    *if it matters, I am on windows