Re: [PROPOSAL] Return json from database directly

2020-06-30 Thread Girish Vasmatkar
Hi Shi I am sorry but I am not following it. By results, did you mean the result of operations done on the View Entity or the definition of the View Entities in JSON format? Also, since you mentioned PostgreSQL, would it be database-agnostic and not limited to PostgreSQL? An example JSON

[PROPOSAL] Return json from database directly

2020-06-30 Thread Shi Jinghai
Hi there, While playing openapi with ofbiz, I found it would more convenient to get some view entity results in json format. I tried array-to-json of PostgreSQL, it worked. A sample use case: And then the result could be sent to