I have a json which seems to be invalid
{
"systemId": 4424,
"professional":88928,
"gate":532,
"mock":02,
"wish":"this",
"transaction_id":"eeases-323fasfse-asdfe33",
"channel": "API",
}
So hence, it cannot be converted to an array in php, i tried json lint and it shows an error at 02.
After some research I came to know that value starting from 0 in json is invalid.
When I surround 02 with double quotes "", than it was successfully converted to array using json_decode.
So I am wondering, how can I add quotes to number all assuming json to be a string.
<?php
$data = '{
"systemId":4424,
"professional":88928,
"gate":532,
"mock":02,
"wish":"this",
"transaction_id":"eeases-323fasfse-asdfe33",
"channel": "API",
}';
$data = str_replace('}', '', str_replace('{', '', $data));
echo '<pre>';
$t = preg_match_all("/(?<=\:)(.*?)(?=\,)/", $data, $matches);
$i=0;
foreach($matches[1] as $key => $value){
if(is_numeric($value)){
$matches[1][$i] = '"'.$value .'"';
}
$data = str_replace($value, $matches[1][$i], $data);
$i++;
}
$data = rtrim(trim($data),','); //remove last comma
$data = '{'.$data .'}';
$data = json_decode($data,true);
print_r($data);
Dirty solution, and i agree 100% with the idea to "fix" your json before you get the response.
If you really really have to go that way to fix your json inside the code the above code will help you in that.
The reason i am trimming the curly brackets at first is to have a more clear string with the data. I concatenate them in the final format when i have done everything needs to be done.
The result of the code is :
Array
(
[systemId] => 4424
[professional] => 88928
[gate] => 532
[mock] => 02
[wish] => this
[transaction_id] => eeases-323fasfse-asdfe33
[channel] => API
)
An array decoded from the valid json
Related
I have a JSON string that may contain one or multiple base64 images.
Here is an example of the JSON string and the REGEX which only find the first occurance.
<?php
preg_match_all('/(data:\s*\S*\/(\w*);base64,[^\"]+)/', $content, $result);
Here is my content,
<?php
$content = '{"textArea":"one","signature":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAABFUAAACWCAYAAAAfULfCAAASLElEQVR4nO3dT2ij553A8bc726Qp1Eq30Py1vKXZQFvbh266EE9k2JJSZpChdAmdWbvNaT00MjulywzFvi0uVHNYikNZNNCDCwWFXNxeFHLwVSdd35Ou72nPOT97WF6t\/nnGfmW9r175c\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404QqANCndm5QNHIE0tLqjzI9PblvWU8rSMnnZ5xIAXqKUAUA+tTOzYo3vcDT0gpRZmfvxPXr2X1DlIGBgchmh6JQmBOkAD1LqAIAfWjnOOWBgYHU1wP0t1pt\/UghysDAQORyY1EuL0WjsZX6ugGelFAFAPrQznHKQhXgpNVq6\/Hxxz87sC\/Kzt4o5fKS3k5AXxKqAEAfEqoAT6LZ3I56fTM2Nh7H6urDKJUWY3b2zoEhysjIcOTzM1EsLkS1uuYkCnAuCFUAoA\/tDFUGBzOprwc4W5rN7djYeByl0mJ8+OFcTE9PxsTE+IGNZHeX8Ny\/f88JFODcE6oAQB\/K52eEKkA0GluxsfE4lpcfxPz83WMFJ63ynVxuLPL5mahUVkwSA9hFqAIAfSiXG+t4o5z2eoBOjcZWlEqLJ1oiU69vxurqw\/jpT\/93vPvuO0dqGruzbKdcXopqdS1qtXUTwwCOSKgCAH2oUllpb5iMKoWzJ5O50r5GR0eHY2JivMP169m4detmvP76f9nzezsNDAzEpUuXjhyetJrGVqtrTp0AnAChCgD0qWZz29tmOIN2jzw\/DVevvtwRoLgXAJwOoQoAADxlO\/senZRWiGLqDsDTI1QBAIAUNBpbUS4vRbG40FaprLT7mlSra\/G3f3s\/isWFKBTmIp+faSsU5trf82\/\/9q9OogCkRKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACQgVAEAAABIQKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACTwn4U+fJ+Q3+ITAAAAAElFTkSuQmCC",'.
'"textArea3":"fourrrr4444"}';
Thanks.
This is much easier if you first json_decode the text; then you can simply check each value in the decoded result to see if it begins with a valid data:image and if so, add it to your output:
$data = json_decode($content, true);
$images = array();
foreach ($data as $value) {
if (preg_match('#^data:image.*?base64,#', $value)) {
$images[] = $value;
}
}
print_r($images);
Output:
Array
(
[0] => data:image/png;base64,iVBORw0KGgoAAAANSU...
[1] => data:image/png;base64,iVBORw0KGgoAAAANSU...
[2] => data:image/png;base64,iVBORw0KGgoAAAANSU...
)
Demo on 3v4l.org
The regex syntax gets tricky here, because you have the literal text image\/png in your input. The backslash must be escaped six times here, four for a literal backslash, and two for an escape for the forward slash (which is also the delimiter used in the call to preg_match_all). Consider this script:
$content = '{"textArea":"one","signature":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAABFUAAACWCAYAAAAfULfCAAASLElEQVR4nO3dT2ij553A8bc726Qp1Eq30Py1vKXZQFvbh266EE9k2JJSZpChdAmdWbvNaT00MjulywzFvi0uVHNYikNZNNCDCwWFXNxeFHLwVSdd35Ou72nPOT97WF6t\/nnGfmW9r175c\/gcmvrPI3nA8lfP83uiL774nwAAAADA1URFLwAAAACgjEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFQAAAIAMRBUAAACADEQVAAAAgAxEFWBm3e554WsAAADIm6gCZNLtnoe9vfshiqIQRVH41rf+vvA1AQAA5ElUAS4tSfrhk0\/+FNbWqoOYMqzdPi18jQAAAHkRVYDnSpJ+ODp6HN58842pMUVUAQAAbiJRBbhQGlNefrkyEk82NtbD4eGjUK2uDv5bpbJS+HoBAADyJKoAU7XbpxPHfDY21sMf\/vBfIUn6odk8Hvn\/dnfvFb5mAACAPIkqwIg47oXt7dsjwaRaXQ2t1snIx4zvXonjXuFrBwAAyJOoAgwcHj4aiSWVykpoNo8nPq5W2xoJKo3GfuFrBwAAyJuoAkw96lOrbU3dfdJo7E\/sYkmSfuGPAQAAIG+iCtxg02JKtbp64S0+7fbpxI0\/3e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AAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACQgVAEAAABIQKgCAAAAkIBQBQAAACABoQoAAABAAkIVAAAAgASEKgAAAAAJCFUAAAAAEhCqAAAAACTwn4U+fJ+Q3+ITAAAAAElFTkSuQmCC",'.
'"textArea3":"fourrrr4444"}';
preg_match_all("/\"data:image\\\\\\/png;base64,([^\"]+)/", $content, $matches);
print_r($matches[1]);
This prints:
Array
(
[0] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
[1] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
[2] => iVBORw0KGgoAAAANSUhEUgAABFUAAA...
)
Looking at how WP uses shortcodes I thoufght I could implement the same structure into a project, I assumed this would be availble somwehere but have yet to track down.
I started to parse myself starting with a preg_match_all
preg_match_all('/[[^]]*]/', $content, $match);
and that return the array with all the shortcodes inside content as expected but then looking at parsing the name, variables or array keys with values I start getting real heavy on parsing.
My current thought is to break up on spaces, then parse each but then i run into spaces in the values even though they are in quotes. So if i parse quoted data first then spaces to re-construct it seems very wasteful. I don't need to re-invent the wheel here so any input is fantastic.
example
[shortcodename key1="this is a value" key2="34"]
would like to have
Array
(
[shortcodename] => Array
(
[key1] => this is a value
[key2] => 34
)
)
here is the complete function that is working if anyone else is looking to do the same, obviously this is not meant to run user content but the called function should do any checks as this only replaces the shortcode if the funtction has a return value.
function processShortCodes($content){ // locate data inside [ ] and
//process the output, place back into content and returns
preg_match_all('/\[[^\]]*\]/', $content, $match);
$regex = '~"[^"]*"(*SKIP)(*F)|\s+~';
foreach ($match[0] as $key => $val){
$valOrig = $val; // keep uncleaned value to replace later
$val = trim(substr($val, 1, -1));
$replaced = preg_replace($regex,":",$val);
$exploded = explode(':',$replaced);
if (is_array($exploded)){
$fcall = array();
$fcallName = array_shift($exploded); // function name
if (function_exists($fcallName)){ // If function exsist then go
foreach ($exploded as $aKey => $aVal){
$arr = explode("=", $aVal);
if (substr($arr[1], 0, 1) == '&'){
$fCall[$arr[0]]=substr($arr[1], 6, -6); // quotes can be "
}else{
$fCall[$arr[0]]=substr($arr[1], 1, -1);
}
}
if ( is_array($fCall) && $fcallName ){
$replace = call_user_func($fcallName, $fCall);
if ($replace){
$content = str_replace($valOrig,$replace,$content);
}
}
}
}
}
You can try this to change all spaces not wrapped in quotes to let's say a semicolon then explode by semicolon
$regex = '~"[^"]*"(*SKIP)(*F)|\s+~';
$subject = 'hola hola "pepsi cola" yay';
$replaced = preg_replace($regex,";",$subject);
$exploded = explode(';', $replaced);
Credits
I have this JSON
[size: null, color: "white"]
Which send to the server via post method.
I try
$your_json_string = json_decode($your_json_string, TRUE)
and
$your_json_string = html_entity_decode($your_json_string);
$your_json_string = json_decode($your_json_string, true);
With print_r($your_json_string); I get: null.
With echo json_last_error(); I get: 4.
Any ideas on how I can solve this?
1) that is a json array [] not an object {}.
2) it will want property names quoted.
$String = <<< LOL
{"size": null, "color": "white"}
LOL;
print_r(json_decode($String,TRUE));
then you get
Array
(
[size] =>
[color] => white
)
If you have a wrong json string and you don't know how it will convert json to array in php. Example Below:
$string = '{test ing,test ingredients,test ingredients3,test ingredients4,test ingredients5}';
Trim your json string and remove non required data.
$string = ltrim($string, '{');
$string = rtrim($string, '}');
Remove comma from string and get normal php array
$newSting = explode(',', $string);
Now you can loop through your data
foreach ($newSting as $key => $value) {
echo $value;
}
I have comma separated value pairs and I would like to convert it to associative array in php.
Example:
{
Age:30,
Weight:80,
Height:180
}
Converted to:
Echo $obj['Weight']; // 80
Does it make a difference that my values are not in inverted commas? I mean:
Weight:80
Vs
Weight:'80'
P.S. I've posted from a phone, so I don't have a lot of fancy markup available to make this question look more presentable.
http://php.net/manual/en/function.json-decode.php
It's an JSON object which you would like to convert to an array.
$string = '{ "Age":30, "Weight":80, "Height":180 }';
$array = json_decode($string, true);
echo $array['Age']; // returns 30
Provided that the given string is a valid JSON.
UPDATE
If that doesn't work because the string doesn't contain a valid JSON object (because I see the keys are missing double quotes), you could execute this regex function first:
$string = "{ Age:30, Weight:80, Height:180 }";
$json = preg_replace('/(?<!")(?<!\w)(\w+)(?!")(?!\w)/u', '"$1"', $string); // fix missing quotes
$obj = json_decode($json, true);
echo $obj['Age']; // returns 30
When using the regex above, make sure the string doesn't contain any quotes at all. So make sure that not some keys have quotes and some not. If so, first get rid of all quotes before executing the regex:
str_replace('"', "", $string);
str_replace("'", "", $string);
You can get all values in an array by using this basic example:
// your string
$string = "{
Age:30,
Weight:80,
Height:180
}";
// preg_match inside the {}
preg_match('/\K[^{]*(?=})/', $string, $matches);
$matchedResult = $matches[0];
$exploded = explode(",",$matchedResult); // explode with ,
$yourData = array();
foreach ($exploded as $value) {
$result = explode(':',$value); // explode with :
$yourData[$result[0]] = $result[1];
}
echo "<pre>";
print_r($yourData);
Result:
Array
(
[Age] => 30
[Weight] => 80
[Height] => 180
)
Explanation:
(?<=}) look behind asserts.
K[^{] matches the opening braces and K tells what was matched.
I have this string:
$str = 'Small ship in the sea';
I'd like to have this output:
"Small ship in the sea"
How can I accomplish this in PHP?
Thanks in advance
EDIT: The answers provided are pretty obvious. I wanted to provide a simple example, what I'm actually doing is loading a huge text file and each line is stored in multiple arrays. So each array should have the quotes at the end and at the beginning, so what would be a solution to the example provided before? Maybe using regex to add the quotes?
EDIT 2:
Apologies for the confusion this is my code:
$users = file('xls/try_traffic.txt'); //Load File
$users = preg_replace('/, TG=\d{3}/', '', $users);
$users = str_replace("LABEL=", "", $users);
$users = str_replace('"', "", $users);
$users = preg_replace("/\t/", '","', $users);
print_r($users);
I get this output (the simple version):
Array ( [0] => 01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXCABINLC
[1] => 01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXLPZOGMV
[2] => 01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXLPZ2WLD1
)
So I want to add the quotes at the beginning and end of each, so it looks like this:
Array ( [0] => "01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXCABINLC"
[1] => "01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXLPZOGMV"
[2] => "01/16/2014 00:00:00","30","TLAGMSC1-MSX","TMXLPZ2WLD1"
)
Why not just make use of the concatenation . operator ?
<?php
$str = 'Small ship in the sea';
echo '"'.$str.'"'; //"prints" "Small ship in the sea"
The answers provided are pretty obvious. I wanted to put a simple
example, what I'm actually doing is loading a huge text file and each
line is stored in multiple arrays. So each array should have the
quotes at the end and at the beginning.
The code
<?php
$arr = file('yourtextfile.txt');
$new_arr = array_map('addquote',$arr);
function addquote($v)
{
return '"'.$v.'"';
}
print_r($new_arr);
I think this is what you want: EDIT 5
foreach ($users as $k => $v) {
$users[$k] = (substr($v, 0, 1) == '"') ? ($v) : ('"'. $v);
$users[$k] = (substr($v, strlen($v) -1) == '"') ? ($v) : ($v .'"');
}
print_r($users);
Check out PHP String Documentation for more details on how to deal with strings in PHP.
Personally, I use single quotes all the time, and only when absolutely necessary do I use doublequotes. It's much easier to predict string behavior with that approach IMO. Hope this helps!