JBackend Module ZOO : About JSON Structure		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			Developpement
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 5					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						9 years 6 months ago				#4949
		by Developpement
	
	
		
			
			
				Hello,
Config  : Joomla 2.5
I am using jBackend for my rest api and in particular the content related to the module Zoo. t's works fine !
But in my JSON Structure I have a problem. In each item of the fields "
elements" is it possible to have an '
identifer" alphanumeric(that we can define ourselves) (ie : name, my-identifier ...) instead of the encrypted string (in my exemple below 
32b1c7cf-8c9f-459f-9df2-c763d42a3df9
"elements": {
    "32b1c7cf-8c9f-459f-9df2-c763d42a3df9": {
      "identifier": "32b1c7cf-8c9f-459f-9df2-c763d42a3df9",
      "type": "text",
      "data": [
        {
          "value": ""
        }
      ]
    },
...
Thanks you for your help !			
 
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
	 
	
		
				
		- 
			Developpement
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 5					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						9 years 6 months ago				#4952
		by Developpement
	
	
		
			
			
				Thanks you for your quick reply.
But when i enabled this option the identifier 
remains the same ; just the Json structure changed ...
I would like something that looks like this :
"elements": {
    "title": {
      "identifier": "title",
      "type": "text",
      "data": [
        {
          "value": "My title"
        }
      ]
    },
  "description": {
      "identifier": "description",
      "type": "text",
      "data": [
        {
          "value": "My description"
        }
      ]
    },
...
It is possible ?			
 
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						9 years 6 months ago				#4953
		by admin
	
	
		
			
			
				Sorry,
I realized that the documentation is not updated. I will do it ASAP.
If you install the latest 1.1.1 ZOO plugin version, you will get two additional options to include and name elements, which is what you are asking for.
Kind regards,
Luigi			
					 
	 
	
		The following user(s) said Thank You: Developpement 	
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			Developpement
		
 
							- 
													Topic Author
											
 
		
					- 
				
	Offline
			
 
		
					- 
				New Member			
 
		
					- 
				
			 
		
			
	
		Less
		More
		
			
									- 
						Posts: 5					
 
				
				
									- 
						Thank you received: 0					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
			
	
						9 years 6 months ago		 -  9 years 6 months ago		#4954
		by Developpement
	
	
		
			
			
				
	
Sorry,
I realized that the documentation is not updated. I will do it ASAP.
If you install the latest 1.1.1 ZOO plugin version, you will get two additional options to include and name elements, which is what you are asking for.
Kind regards,
Luigi
Amazing !  

Thanks you			
 
					 
	 
	
		Last edit: 9 years 6 months ago  by Developpement.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
 
				
				
									- 
						Thank you received: 441					
 
				
				
				
				
									- 
											
 
				
				
				
									- 
											
 
				
				
							
		 
	 
		 
		
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.158 seconds