Fred Montier Posted April 26, 2019 Share Posted April 26, 2019 Hi there... I need to receive a json array and I figured out that it was supposed to be handled in ServerModule, in UniGUIServerModule.OnHTTPDocument on in UniGUIServerModule.OnHTTPCommand. How it should work: 1- Send data to the ecommerce server (name, card number, amount etc) 2- It will return in another transaction the JSON Array with info about it. (more detail, approved or not etc) 3- I need to get that array and manipulate it. Where I get this Json array ? In manual just said the "ONhttpDocument" worh like idHTTPServer event. But even there I could not put it to work properly. PS: Don't work with Serverparams, tried already. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 27, 2019 Share Posted April 27, 2019 Hello, You will send data to ecommerce server and you need to say return link (Should be unigui server) OnHttpCommand you will get result and rest of it regular json parse. https://stackoverflow.com/questions/14864170/how-to-parse-a-json-array-in-rad-studio Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.