Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Categories web services
Created by Guest
Created on Feb 13, 2018

Enable custom JSON structures for published web services

Developers need to have the ability to explicitly define the shape of JSON objects they want to expose via a REST service. Currently, users have no way of explicitly controlling how TDV will make the JSON object appear.

  • Attach files
  • Guest
    Sep 1, 2020

    reviving this

    a Quickfix would be to have an option to disable TDV pre-processing before presenting data through a REST service -

    i.e. the ability to send [rawdata] FROM a TDV REST endpoint, the same way we can send [rawdata] TO a REST endpoint.

    As it is, TDV makes assumption on the structure of data it's returning, and tries to add ",: and escape characters in what it believes to be value-pairs and strings.

    When a TDV REST service returns JSON with custom structure, this obviosuly breaks the output.

  • Guest
    Feb 13, 2018

    An addition to this is that we need to have the ability to build JSON objects and pass them back to REST webservices. There is no easy way to do this apart from passing the [rawdata] parameter to a REST call. We should have some built in UI options for creating these JSON structures... It gets a bit gnarly trying to append JSON to a VARCHAR variable in a sql procedure.