Skip to content

JSON like queries fail for KeywordsVocabulary #284

@szakitibi

Description

@szakitibi

The json like query strings ([test] or {test}) doomed to fail for KeywordsVocabulary, due to the use of _parseJSON:

def _parseJSON(s):
# XXX this should be changed to a try loads except return s
if isinstance(s, str):
s = s.strip()
if (s.startswith("{") and s.endswith("}")) or (
s.startswith("[") and s.endswith("]")
): # detect if json
return json_loads(s)
return s

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