I have the same query (more or less).
I want to take this response from getRecordByFilter() –
{"record":
[{"id":1,"first_name":"Beau","surname":"Scott","birthdate":"","address":"7127 Sociosqu Ave","postcode":"FN4Y 9GH","nhs_number":2147483647,"gender":"Male"}, {"id":2,"first_name":"Garrison","surname":"Sheppard","birthdate":"","address":"906-7498 Facilisis St.","postcode":"BD4J 6OX","nhs_number":1611531426,"gender":"Male"},
{"id":3,"first_name":"Erich","surname":"Crane","birthdate":"","address":"231-2271 Curabitur St.","postcode":"U9G 8WA","nhs_number":2147483647,"gender":"Male"}]
}
And transform/parse it to:
[{"id":1,"first_name":"Beau","surname":"Scott","birthdate":"","address":"7127 Sociosqu Ave","postcode":"FN4Y 9GH","nhs_number":2147483647,"gender":"Male"}, {"id":2,"first_name":"Garrison","surname":"Sheppard","birthdate":"","address":"906-7498 Facilisis St.","postcode":"BD4J 6OX","nhs_number":1611531426,"gender":"Male"},
{"id":3,"first_name":"Erich","surname":"Crane","birthdate":"","address":"231-2271 Curabitur St.","postcode":"U9G 8WA","nhs_number":2147483647,"gender":"Male"}]
except I would prefer to do it client-side, ideally by taking the response and just stripping out the meta-data.
I am very new to coding in general let alone javascript. However, I want to learn. Consequently, would you @leehicks (or anyone else) point me in the right direction on how you would go about doing this?
I suspect there are others who would be interested in this too. I would be happy adding what I learn to the documentation.
Many thanks in advance.
@gdvallance