• Resolved jakecamara

    (@jakecamara)


    I have values in an array that have a true or false value. When I try to print them, it just prints the key name as I printed it. This is an example of part of the array:

    `
    “created_at”:”2015-03-02T10:10:12-05:00″,
    “mp4_width”:0,
    “mp4_height”:0,
    “has_photo”:true,
    “has_video”:false,
    `

    The created_at prints with no problem, but when I use {has_video}, it just displays {has_video}, whether it’s true or false.

    Thoughts? Thanks!

    https://ww.wp.xz.cn/plugins/json-content-importer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author berkux

    (@berkux)

    Hi jakecamara,

    good point. Boolean-Values are ignored by my plugin up to now. String or number is expected as value.
    This can be added in a futur version: Does it make sense to display the string “true” or “false”.

    Best
    Bernhard

    Plugin Author berkux

    (@berkux)

    New in Verson 1.2.1: Boolean Values are displayed as true/false-text

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can't read boolean values.’ is closed to new replies.