Search Postgresql Archives

revert function for to_json ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
 
I'm looking for $subject
 
example:
 
how to revert
  select to_json(E'a\n''b'::text)
 
I can achieve it with something like this:
  select json_extract_path_text(('{"a":'||to_json(E'a\n''b'::text)||'}')::json,'a')
 
does anybody knows a  less ugly solution ?
 
regards,
 
Marc Mamin
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux