Combine multiple toJson methods into one request

I’m trying to combine two built_value classes into one HTTP POST request. My function looks like this: Future<void> changeInfo(BasicInfo basicInfo, Notifications notifications) async { String json = jsonEncode({ ‘basicInfo’: basicInfo.toJson(), ‘notifications’: notifications.toJson() }); print(json) // This is double encoding my basicInfo and notifications classes // resulting in something like this with forward slashes \: //…

Node Red Json Array Filter

need some help with filtering Array, any help is appreciated. e.g. Input [{“AGVPoint”:”TGB01″,”CID”:”11″,”CLnum”:”1″}, {“AGVPoint”:”TGB02″,”CID”:”4″,”CLnum”:”2″}, {“AGVPoint”:”TGB03″,”CID”:”13″,”CLnum”:”3″}] find CLnum:”1″ Output [{“AGVPoint”:”TGB01″,”CID”:”11″,”CLnum”:”1″}] Thanks guys

Group json objects in an array based on unique id

For example this the json which i get.Json group this var data = [{ orderid: 1, ordername:ordername1, productcode: 1, productname: product1, productquantity: 10 }, { orderid: 2, ordername:ordername2, productcode: 2, productname: product2, productquantity: 11 }, { orderid: 1, ordername:ordername3, productcode: 3, productname: product3, productquantiy: 45 } ] Expected output [ { orderid: 1, ordername:ordername1, products:…

JSONTable MySQL Syntax

i have the following Error: [42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(raw_values, ‘$’ COLUMNS ( dts VAR’ at line 2 My JSON looks like this: {“dts”: {“<all_channels>”: {“<all_locales>”: true}}, “ean”: {“<all_channels>”: {“<all_locales>”: 4250325237889}} etc. }…