Skip to content

JSON seems to be the only intended return type #8

@bjovanovic

Description

@bjovanovic

Wrapping content in callback( without quotes/escaping it works well for json content, however it does not work for e.g. html. When trying to pull html cross domain with jsonp (with this module) result is callback(<html...</html>) without any quotes and/or escaping.

We either need a flag of some kind or some other method (including content detection) to determine if the returned content is pure json or something else, and if something else, wrap it in quotes/escape contents.

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