general cleanup of modules, moved most types, specs, defines and records to header files and did some minor reformatting to adhere to style guidelines
This commit is contained in:
parent
86b4fbbec9
commit
c098b06e88
16 changed files with 247 additions and 147 deletions
|
@ -24,9 +24,12 @@
|
|||
-module(jsx_verify).
|
||||
-author("alisdairsullivan@yahoo.ca").
|
||||
|
||||
|
||||
-export([is_json/2]).
|
||||
|
||||
-include("./include/jsx_types.hrl").
|
||||
|
||||
-include("./include/jsx_verify.hrl").
|
||||
|
||||
|
||||
-ifdef(test).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
@ -34,8 +37,6 @@
|
|||
|
||||
|
||||
|
||||
-spec is_json(JSON::binary(), Opts::verify_opts()) -> true | false.
|
||||
|
||||
is_json(JSON, Opts) ->
|
||||
Encoding = proplists:get_value(encoding, Opts, utf8),
|
||||
Comments = proplists:get_value(comments, Opts, false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue