How to get the keys from JSONObject

I have a JSONObject from a REST API. The problem is that I do not know the keys in advance. Is there a way to get them as a list, without writing my own JSON parser?

There is a block in the Web component that converts the JSON text to List