English 中文(简体)
帮助收集大量JSON数据
原标题:Need help debugging a huge chunk of JSON data
  • 时间:2010-06-15 17:55:22
  •  标签:
  • php
  • json

我有巨大的空白,因此,我可以人工编辑档案,需要阅读档案,并做事看错。

基本上,我的服务器是PHP 5.1.6,我可以更新。 该代码是较老的<代码>json_decode,其特征低于5.2/5.3版本。

json_decode Return NUL and json_last_error is beingquot, but the function doesn t existence than in PHP5.3 so Im本能体地试图看到什么错误。

$regex =  #[^0-9"$a-zA-Z{:}().]# ;
$json = preg_replace( $regex,   , $json );
$tree = json_decode ( $json, true );

var_dump($tree); // NULL

A snippet of the JSON. Some处

1:8

<代码>><>>但这种怀疑可能仅仅贴近4个密封物体。

赞赏任何见解。

最佳回答

我通过JSON格式/鉴定人多次掌握数据,数据是有效的。 数据集太大,即使使用紫外线来杀害nes物体,也是很多工作。

我能够在当地管理这一数据集,因此,我会得出这样的结论,即PHP 5.1的宽限为20,而PHP 5.1的降幅为5.2和5.3。

问题回答

您是否尝试了PEAR Services_JSON 等? 这可能会给你一个更有用的错误,而且对旧版本的公用住房价格有很大的影响。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签