Skip to main content
Known Participant
Jun 13, 2025 4:56 PM UTC
Question

I want to check how to identify empty json returned from a!fromJson()

a!isNullOrEmpty(a!fromJson("{}")) gives me result as false but my requirement is to check if a!fromJson is empty then it should return true. How can we acheive this?

    2 replies

    stefanhelzle0001
    Brainy
    Jun 13, 2025 5:13 PM UTC

    You can try this:

    a!isNullOrEmpty(a!keys(a!fromJson("{}")))

    Known Participant
    Jun 14, 2025 8:55 AM UTC

    Thanks [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05]  That worked for me