AutoWeb Problem with optional fields

Discussion in 'AutoApps' started by kiko1, Dec 7, 2018.

  1. kiko1

    kiko1 New Member

    Joined:
    Jun 4, 2015
    Messages:
    1
    Likes Received:
    0
    Hi there,

    I'm trying to update Netatmo API in order to get the status of my Heater, Netatmo has been deprecated some old API's funtion and I have to used a regexp to get what schedule is active, the field witch said if the schedule it's active it's an optional field and only appears on the active schedule like selected:true.

    are they an way to deal with optionals fields? or could ao help me with the regexp on autoweb? I've try it but no results with that, it works on https://regex101.com/ but doesn't work on autoweb.

    Thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Hmm, if the result is in JSON then you probably don't need regex. Can't you get the field directly using the JSON path?
     
: Autoweb

Share This Page