a!fromJson()

Certified Associate Developer

when I run the functon a!fromJson(). It gives the error

Error:==

The JsonText parameter does must not be null or empty

what should i do

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    local!search:if(a!isNullOrEmpty(ri!input),

    {},

    a!fromJson(ri!input)

    ),

    local!pagingInfo:a!pagingInfo(

    startIndex:local!search.startIndex,

    batchSize:local!search.batchSize

    )

    when i apply a!nullorEmpty(ri!nput).in a!fromJson(ri!input)..It gives error at startIndex

    error:-

    invalid index:cannot index property startIndex of type String into type List of Variant

  • 0
    Certified Lead Developer
    in reply to shifa

    What are you trying to do here? What is this JSON data you are dealing with?

    So, the dot-notation will fail in case that field does not exists. This is what the error message means.

    You can use the index() or property() function to fetch values from fields. It allows you to provide a default value in case the field does not exist.

Reply Children
No Data