If it's compressed, you probably need to uncompress it first.  The
from_json filter doesn't have builtin support for decompressing files.  (I
don't believe any of our filters do)

-Toshio

On Mon, Apr 24, 2017 at 4:36 AM, 'J Hawkesworth' via Ansible Project <
[email protected]> wrote:

> Try using a site like jsonlint.com to check if your xl.json is actually
> valid JSON.
>
> On Monday, April 24, 2017 at 9:24:01 AM UTC+1, Suporter wrote:
>>
>> Getting the subject mentioned error while reading a compressed json, any
>> workaround for this?
>>     - name: read local file
>>       set_fact:
>>        reg_changes: "{{ lookup('file', '/home/tess/xl.json') | from_json
>> }}"
>>       delegate_to: localhost
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/7875c956-b905-4e9a-9ed3-5684b5025412%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/7875c956-b905-4e9a-9ed3-5684b5025412%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG9juEpAJ4-5OsWYd2r5ACR22HnXBcCxPbRH5zZ5N_oXpGgJ-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to