Have Uint8Array which is converted to string via
const str = String.fromCharCode(...resp[0][0]);
Console.log produce
str:{"contentType":"image/jpeg","name":"fileUpload","filename":"C:\Users\Admin\AppData\Local\Temp\bd767cae/1927905d3ca2ad2f56136aec0ccba000d024f88b.jpeg","originalName":"WP_20150311_004.jpg"}
Obviously cannot just do console.log(str.filename)
in order to see filename value so help appreciated.
// '{"msg":"hello world"}'
const u8Arr = new Uint8Array([123, 34, 109, 115, 103, 34, 58, 34, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 34, 125]);
const json = new TextDecoder().decode(u8Arr);
const data = JSON.parse(json);
console.log(data.msg); // "hello world"