Hi all,
I am not a coder so have very little understanding of how to get this to work.
I am making a call using the API connector to:
https://abr.business.gov.au/json/
This is a Govt business name directory, it returns a list of matches. This API returns a text file that’s formatted like JSON but it’s not JSON.
I need to clean up the data and make it Json and then somehow gets it into Bubble so that I can display the data into a repeating group for the user to select which business they are looking up.
This is what the text looks like:
We can see that the data after “callback({“Message”:”",“Names”" is the data we want.
There was a post by someone with the same problem and he went down the regex path. So I assuming you can use regex to extra the data but how to you convert it into something that Bubble would understand?
If you have a solution, please contact me and I am happy to pay you for your time.
callback({“Message”:"",“Names”:[{“Abn”:“11617869548”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“BOLD BRIDGE CAPITAL”,“NameType”:“Business Name”,“Postcode”:“3006”,“Score”:100,“State”:“VIC”},{“Abn”:“11617869548”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“BOLD BRIDGE PTY LTD”,“NameType”:“Entity Name”,“Postcode”:“3006”,“Score”:97,“State”:“VIC”},{“Abn”:“97092228469”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“BRIDGE CAPITAL PTY LTD”,“NameType”:“Entity Name”,“Postcode”:“3101”,“Score”:97,“State”:“VIC”},{“Abn”:“81123230688”,“AbnStatus”:“0000000002”,“IsCurrent”:true,“Name”:“Bold Capital Pty Ltd”,“NameType”:“Entity Name”,“Postcode”:“4740”,“Score”:97,“State”:“QLD”},{“Abn”:“82603933704”,“AbnStatus”:“0000000002”,“IsCurrent”:true,“Name”:“CAPITAL BRIDGE PTY LTD”,“NameType”:“Entity Name”,“Postcode”:“2205”,“Score”:93,“State”:“NSW”},{“Abn”:“11167713582”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“CAPITAL BRIDGE PTY LTD”,“NameType”:“Entity Name”,“Postcode”:“3145”,“Score”:93,“State”:“VIC”},{“Abn”:“18177023494”,“AbnStatus”:“0000000002”,“IsCurrent”:true,“Name”:“CAPITAL BRIDGE PTY LTD”,“NameType”:“Trading Name”,“Postcode”:“3000”,“Score”:93,“State”:“VIC”},{“Abn”:“27801794759”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“Bold Capitol”,“NameType”:“Business Name”,“Postcode”:“2022”,“Score”:91,“State”:“NSW”},{“Abn”:“60521379247”,“AbnStatus”:“0000000002”,“IsCurrent”:true,“Name”:“BOLD”,“NameType”:“Trading Name”,“Postcode”:“4036”,“Score”:88,“State”:“QLD”},{“Abn”:“54007794201”,“AbnStatus”:“0000000001”,“IsCurrent”:true,“Name”:“BOLD COMPANY PTY LTD”,“NameType”:“Entity Name”,“Postcode”:“5031”,“Score”:88,“State”:“SA”}]})