@@ -16,8 +16,8 @@ module Network.Google.Data.JSON
16 , FromJSON (..)
16 , FromJSON (..)
17 , ToJSON (..)
17 , ToJSON (..)
20 , withObject
19 , withObject
@@ -33,6 +33,9 @@ import Servant.API
34type JSONValue = Value
34type JSONValue = Value
37+emptyObject = Object mempty
36parseJSONText :: FromText a => String -> Value -> Parser a
39parseJSONText :: FromText a => String -> Value -> Parser a
37parseJSONText n = withText n (maybe (fail n) pure . fromText)
40parseJSONText n = withText n (maybe (fail n) pure . fromText)