Skip to content

Can't do filter using fields between single quotes #16

@jobdiogenes

Description

@jobdiogenes

to deal with fields names with period or hyphen must use single quotes like this

JSPath("$..'a-bc'").parse(data)

# but we can't filter like this
JSPath("$.user-list'[@.'city-name'=='Austin'")

# nor 
JSPath('$.user-list'[@."city-name"=="Austin"')
 

I guess that field names must be enclosed with `
to avoid problems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions