JSON to bind with richselect, select or combo

I have a JSON


JSON is available at : http://webix.com/snippet/655fec70


I want to bind it with a richselect, select or combo but it should provide me the selected value as prefix so I can process further. Possibly, if it displays full name of city which is available in another JSON, would be a big plus.

So the selectbox(or whatever) displays like => 989 - Michigan and when I select any of the option, it provides me value 989

Thanks

You can create a custom data type. Check the next snippet

http://webix.com/snippet/670b877f

What if I have to call an API which provides the same JSON?

aah… Thanks @maksim I have done it by putting URL direclty in body tag.

Thanks for solving my problem :slight_smile: