Skip to content

http-server: Invalid JSON syntax in response for pipeline-element's details #337

@wetterfrosch

Description

@wetterfrosch

When querying the JSON of an element via the http-server an invalid JSON returns.

GET http://<host>:<port>/pipelines/<pipeline>/elements/<element>/

Firefox warns immediately:

SyntaxError: JSON.parse: expected double-quoted property name at line 69 column 7 of the JSON data

When looking at the section the ],{-party already seems a bit wrong:

                "access" : "((GstdParamFlags) READ | 224)"
            }
        }
    ],{
    "element_properties" : [
        {
            "name" : "name",
            "value" : "x264enc",

Correct bracketing should likely look like this:

                    "access": "((GstdParamFlags) READ | 224)"
                }
            }
        ]
    },
    "element_properties": [
        {
            "name": "name",
            "value": "x264enc",

while removing a } in the very end of the output.

Thank you by the way for this great tool! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions