Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How do I create JSON objects in php that contain JSON arrays, with square brackets?

json array

  • Please log in to reply
No replies to this topic

#1 jimiwa

jimiwa

    CC Regular

  • Member
  • PipPipPip
  • 31 posts
  • Location:Enola, PA
  • Programming Language:C, Java, C++, C#, PHP, Visual Basic .NET, Assembly
  • Learning:C#, JavaScript, Visual Basic .NET

Posted 15 October 2011 - 02:33 PM

I'm trying to do some server/client programming and I already
have figured out how to create php arrays and translate those
arrays into json data. The thing is when using php arrays and
translating them into json data, the php arrays translate into
json objects holding name value pairs (curly bracket syntax {})
and they do not translate into JSON arrays (square brackets)
How do I create JSON objects in php that contain JSON arrays,
with square brackets? Any help would be great. Thanks.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download