add support for parsing method calls with json arguments