Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 14th, 2006, 12:43 AM
Registered User
 
Join Date: Mar 2006
Location: , , Canada.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSON-PHP v. PHP-JSON

Hello,

I have been fighting with the example in Chapter 7 for almost 5 hours...only to realise that PHP-JSON may not contain the same functionality as JSON-PHP.

Based on the "Other Tools" section of Chapter 7, I thought PHP-JSON would be the logical choice and simple replacement, given I seek the fastest server components. The PHP-JSON website identifies performance gains over native PHP, but I could not get the example to work until I added the line to include JSON-PHP. The cryptic error messages led me nowhere, until I read the last post (see http://p2p.wrox.com/topic.asp?TOPIC_ID=41360). BTW, the module is installed, as phpinfo() reports it.

Is there functionality in JSON-PHP that is not in PHP-JSON? Any additional comments or thoughts? I am new to JSON and suspect I need to do some more reading...

Thanks.

  #2 (permalink)  
Old March 14th, 2006, 11:02 AM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

JSON-PHP and PHP-JSON are two completely different libraries (one is not a port of another). You'd need to refer to the documentation for the library you are using.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
  #3 (permalink)  
Old August 17th, 2011, 07:52 AM
Registered User
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default json - php

As you are new to json try the following site with Installation of JSON in PHP, PHP json_decode function, PHP json_encode function, PHP json_last_error() function.
http://www.w3resource.com/JSON/introduction.php


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# JSON Library radhakrishnane BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 January 21st, 2009 09:36 AM
C# object to/from JSON possible?!? quantass BOOK: Beginning Ajax with ASP.NET 1 January 21st, 2009 09:32 AM
JSON and ScriptService balesh.mind ASP.NET 3.5 Basics 0 December 4th, 2008 08:14 AM
error in json.js vinayhk BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 May 26th, 2008 07:34 AM
JSON and html form pegasus51 Ajax 0 January 28th, 2007 06:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.