Jump to content

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

- - - - -

  • Please log in to reply
No replies to this topic

#1
jimiwa

jimiwa

    Newbie

  • Members
  • PipPip
  • 14 posts
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users