Add support for JSON attribute payload in stub