Json payload now traces out as <internals>

I’ve just started updating some elm apps to 0.19 and was wondering if there is any way to trace out the output of Json received through ports.

In 0.18 I could trace out the payload to the console with Debug.log and get the Json string that I could investigate, but with 0.19 I just get <internals> in the console without any information about the structure of the Json, which can make it [very] hard to debug a decoder.

(@evancz the new compiler is outstanding - thank you for your work on this. At times I was having to wait close to 10 mins to compile, it’s now down to 3-5 seconds :smile: amazing work)

Debug.log "My JSON" (Json.Encode.encode 2 jsonValue)
5 Likes

Thanks that solves it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.