KS5003
A method the value doesn't have. After ->, the editor lists the methods the value has. Methods are always called with brackets: $name->upper().
A method that was renamed says what to write instead: ->json() is no longer part of KScript. Use ->convert(from: json). Where the new spelling takes the same arguments, the error has a quick fix and kscript check --fix applies it, so $text->json(as: Order) becomes $text->convert(from: json, as: Order) and $fruit->length() becomes $fruit->count(). A method whose arguments changed too, such as ->sort_by(fn) to ->sort(by: fn), is left for you to rewrite.