From f9c1e8c765c2131934f5c365de8a3317c19ac4f9 Mon Sep 17 00:00:00 2001 From: Vadim Rihlea Date: Wed, 9 Apr 2025 16:18:02 +0300 Subject: [PATCH] Allow roArray type for JSON data in addition to AAs --- src/source/Requests.brs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/Requests.brs b/src/source/Requests.brs index 581c782..33d95ed 100644 --- a/src/source/Requests.brs +++ b/src/source/Requests.brs @@ -51,7 +51,7 @@ function Requests_request(method, url as String, args as Object) if args.data <> invalid and (type(args.data) = "String" or type(args.data) = "roString") _data = args.data end if - if args.json <> invalid and type(args.json) = "roAssociativeArray" + if type(args.json) = "roAssociativeArray" or type(args.json) = "roArray" _json = FormatJson(args.json) end if if args.timeout <> invalid and (type(args.timeout) = "Integer" or type(args.timeout) = "roInteger")