php json encode
Posted
by hafizan
on Stack Overflow
See other posts from Stack Overflow
or by hafizan
Published on 2010-05-22T04:34:36Z
Indexed on
2010/05/22
4:40 UTC
Read the original article
Hit count: 293
php
This below output come from php json_encode.What we see here is 0849 is twice.Since javascript only use sn to get value why we need the "0" value.The main problem is speed execution. If 800 kb data might can be reduce to 400 kb
{"success":"true","total":968,"data":[{"0":"0849","sn":"0849" }]
If no solution i have to make a script to filter in json_encode so no need twice data transter.
© Stack Overflow or respective owner