When making a call to the QB API, the data needs to be in the proper format for that method. Depending on which method you are using this format can be URL paraments, XML or CSV. If you are retrieving JSON data from another source you will need to transform this data to the proper format. If you are attempting to add or update records in bulk, you should put your data into CSV format and use the API_ImportFromCSV method.