Skip to content

Tag: json

REST Server-Client Communication

I’m developing an Android app in Java and I need to add a REST Server-Client Communication feature to it. I assume that the following code should post data to a .php file and will be thankful if someone explains to me what does it do and how to use it properly: Answer My answer is in as comments in your

SQL query JSON of MySQL 8.0 comes String instead of Array

I create a table in MySQL 8.0 as follows: It contains JSON type data, and I insert some data as: And I use php to visit the database, I wish to get value of “airline” as an Array. But it comes out a String, NOT an Array! This really annoys me, and JSON in MySQL is hard to understand. Answer

Getting rid of numbers in a json response ( LARAVEL 9 )

i’m having some problems with my json response. When I make an api call from a user (id:1) it returns the response well, but if i change the user (f.e id:2) it returns it with some identifiers on it. Any idea? Response from id:1 Response from id:2 Thanks! EDIT 1 This is how I am getting the response: An…

Retrieve data from the name of a directory in my database

I use php and laravel. I have a column named MsgBody. In this column, there is an array as follows. I want to get the value of “conversationDesc” from this array. What should I do in the Controller and blade part for this? Answer It seems that your data are JSON. You can decode this using json_dec…