Created
February 14, 2016 03:16
-
-
Save badri/e8d18dcb324e2a88166e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION test_func(data json) RETURNS json AS $$ | |
return JSON.stringify(data); | |
$$ LANGUAGE PLV8; | |
SELECT test_func('{"a": {"b":"foo"}}'::json); | |
test_func | |
------------------- | |
{"a":{"b":"foo"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment