Comments (3)
Hi @alexjones12345, it is very likely that your magento server api does not return the data in the way that Product class represent at the moment, the reason this can happen may be due to certain fields (e.g. custom attributes or extended attributes) in the Product class does not confirm to your magento server api call, i think the best way to fix this is if you have a test magento account that can be accessed publicly, i can write some demo codes and logging to see what goes wrong in the response JSON deserialiation by fetching data from your magento server. Alternatively, if you have the JSON response data, you can send me the JSON response data for the Product.
from android-magento-client.
@alexjones12345 the issue was caused by magento site not having a standard json representation for extension_attributes and custom_attributes, e.g., the response data for Product can have extension_attributes and custom_attributes in either JSONArray or JSONObject depending on how you configure your magento. I am currently working to address this issue by including a customer deserializer for extension_attributes and custom_attributes. it is working well with the test json response sample for Product, will deploy the new version into nexus for gradle repo
from android-magento-client.
@alexjones12345 The updated version has been deployed to the nexus, you should update your build.gradle to the following line:
compile 'com.github.chen0040:android-magento-client:1.0.5'
To see how it addresses the json response issue, please take a look at and run the ProductJsonUnitTest.java in the src/test of the latest source code of this library, it should pass
from android-magento-client.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-magento-client.