Skip to content

Add JSON support in communication with zencoder.com #5

Description

@aleksey-korolev

zencoder.com supports communication in both json (by default) and xml.
ZencoderClient.createJob(ZencoderJob job) returns Document and there's no way to instruct ZencoderClient to use JSON.
JSON support has to be added.
There are 2 options:

  1. ZencoderClient uses json format for communication and returns json response from server as a String which is later processed by developer's code upon developer's discretion.
  2. ZencoderClient parses json string from server and constructs JSON object using one of JSON libraries, e.g. jackson or json-simple.

Activity

  1. drallgood commented on Sep 17, 2012

    @drallgood
    Contributor

    hmmm...

    Is there a reason why someone would need JSON and can't work with XML?

    I didn't want to complicate the code by supporting two different output formats. That's why I never included JSON support.

  2. aleksey-korolev commented on Nov 19, 2012

    @aleksey-korolev
    ContributorAuthor

    Well, I think JSON would be less expensive in parsing, but this is just my speculation, I didn't do any tests yet.

  3. drallgood commented on Nov 19, 2012

    @drallgood
    Contributor

    Hmm.. Don't think so. Might depend on the parser, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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