| От | Andrew Dunstan |
|---|---|
| Тема | Re: mogrify and indent features for jsonb |
| Дата | |
| Msg-id | 54F33526.80806@dunslane.net обсуждение исходный текст |
| Ответ на | Re: mogrify and indent features for jsonb (Petr Jelinek <petr@2ndquadrant.com>) |
| Ответы |
Re: mogrify and indent features for jsonb
|
| Список | pgsql-hackers |
On 03/01/2015 05:03 AM, Petr Jelinek wrote:
> On 23/02/15 18:15, Dmitry Dolgov wrote:
>> Hi, Petr, thanks for the review.
>>
>> >>> I think it would be better if the ident printing didn't put the
>> start of array ([) and start of dictionary ({) on separate line
>> Did you mean this?
>>
>> [
>> {
>> "a": 1,
>> "b": 2
>> }
>> ]
>>
>> I tried to verify this in several ways (http://jsonprettyprint.com/,
>> "JSON.stringify", "json.too" from python), and I always get this result
>> (new line after ([) and ({) ).
>
> No, I mean new lines before the ([) and ({) - try pretty printing
> something like '{"a":["b", "c"], "d": {"e":"f"}}' using that tool you
> pasted and see what your patch outputs to see what I mean.
>
>
Please try this patch and see if it's doing what you want.
cheers
andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера