Fix json objects output

(2 posts) (2 voices)

Tags:

No tags yet.

  1. maron, Member

    When using export=json&json_force_object=1 the output is prepended by
    "0":

    This makes the output unparseable by standard jquery functions like .getJSON

    Currently I'm writing php files like this to handle this problem


    <?php
    echo "{" . file_get_contents("http://mydbr/report_url...&export=json&json_force_object=1") . "}";
    ?>

    Would it be possible to get the result correctly formatted with the brackets?

    This would ensure standard behaviour and remove the necessity to proxy the exported reports.
    Regards,
    Maron

    Posted 5 years ago #
  2. myDBR Team, Key Master

    Hi,
    this is fixed in the lastest build.

    --
    myDBR Team

    Posted 5 years ago #

Reply

You must log in to post.