deserialze object to float[,] in Javascript or Jquery

I'm pushing a C# object to a javascript function

The c# object is declared as
float[,] _temperatureData;

Open in new window

and looks like this:
array
it contains a bunch of x y coordinates and a value for each coordinate

When I push it to Javascript, I use console.log and its just writing out the values and not the coordinates:
[280.284241,280.373627,280.3647,280.1321,280.284241,280.185822,280.150024,280.3379,280.1948,280.203735,280.150024,279.8989,280.257416,280.257416,280.52536,280.32,280.266357,280.5432,280.257416,280.454,280.293182,280.3379,280.462921,280.471832,280.328949,280.248474,280.3647,280.32,280.346832,280.0066,280.203735,279.988647,280.328949,2.......

Open in new window


I need to somehow cast it to the correct object so it looks like the original object
I may need to deserialize it, but not sure...any help appreciated
websssAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
@websss I am already assisting you with this issue here
https://www.experts-exchange.com/questions/29089858/access-C-object-from-Javascript-need-help-converting-to-the-correct-object-in-JS.html#a42503870
Please don't open duplicate questions.
The reason you are getting the output above (As I have explained in my post to your other question) is that you are outputting a JSON string - which needs to be parsed back into a JavaScript object before you can use it.
Here is a reference to that function
JSON.parse();

I have left a question for you in your other thread - if you respond to that we can answer both of these questions.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.